In this parameter "SPACE=(CYL,(1,2),RLSE),VOL=(,,,3)“, what is the possible maximum space allocation for this dataset TEMP?
1st allocation: 1 cyl
2nd allocation: 2cyl * 3 = 7cyl
3,4,.....16 is the same of 2nd allocation, ie 7cyl * 14 = 98 cyl
so, maximum space is 1 + 7 + 98 = 106 cyl.
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
There is a link to manuals at the top of the page. You would do well to click on it and spend time reading the manuals. If you did so, you would find the JCL Language Reference manual, which says in section 12.68.2:
Quote:
Volume Count for Nonspecific Requests: If the request is for a nonspecific, public volume on a direct access device, the system ignores the volume count and allocates the number of volumes in the UNIT count subparameter.
So first, your VOL=(,,,3) is ignored.
Second, space allocation is per volume with a limit of 16 secondary extents per volume. So the first disk pack could have up to 1 + 2*15 = 31 cylinders of space.
Third, your unit count subparameter is 1 so multiple volumes will not be allocated.
Fourth, your math is completely wrong -- 7 cylinders would never be allocated for a secondary extent on this data set (only 2), even if there were multiple volumes allocated to it.
As an exercise, see if you can read the manuals and find out how space would be allocated on the second and third volumes (if you were using them) -- you might be surprised at the answer (hint: 7 is not it).
Suggest you include the 'Using Datasets' manual on your reading list. It's available on the IBM website.
This result of this space request would depend whether this dataset is SMS managed or not, and if the dataset was Extended Format or not (as defined by the datasets assigned Dataclas if applicable)
If it is non-SMS managed and being allocated on Public mounted volumes the rules Rob mentions above would apply.
If it is SMS managed the volume count is honoured, although the extra volumes will only be 'candidates' if they're not used (i.e. not enough data to need to write tto the 2nd or 3rd volume)
If Extended Format there can be up to 123 extents per volume.