How many times secondary space allocated?

Answer Posted / e s hudders

The answer is it depends. A VSAM file can have up to 123 extents in VSE and up to 255 in MVS. This is by component, that is index and data. Any time that a primary or secondary is allocated, VSAM can satisfy this request in up to 5 extents. Each extent counts towards the maximum. So, if for some reason you requested 500 cylinders and VSAM satisfied this request with 5 separate extents that total the 500 cylinders, then you have to subtract this number from the maximum allowed. The same applies to a secondary allocation. So, although in theory you could say that you could have the maximum allowed minus 1 (for the primary), in reality it could be less. Also, remeber that if you have multi-volumes allocated, you would get a primary allocation on the new volume when there is no space for the secondary on the current volume. This would not apply for a VSAM data set defined using SMS in MVS where you can request that the secondary allocation be applied to a new volume.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output

2065


What is the purpose of having vsam data space?

524


What are the different versions of gdg named?

558


explain how many ways you can load data in a vsam cluster?

574


in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

698






what are the codes returned by the ams (access method services) command during the execution in vsam?

763


what do you mean by idcams? Explain its purpose?

539


what will happen when you try to open an empty vsam file in a cobol program for input?

617


Explain the function of entry-sequenced data set?

530


to use the rewrite command, how should the vsam file be opened?

660


how do you create an alternate index ?

575


What is a lds (linear data set) and what is it used for?

519


explain in brief why do vsam take more disk space than other utilities?

642


What is a lds (linear data set)?

550


What are the different dataset organizations used in vsam?

563