IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How many space is allocated?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
wanmkhk

New User


Joined: 04 Jul 2010
Posts: 1
Location: Australia

PostPosted: Thu Jul 22, 2010 7:17 pm
Reply with quote

//TEMP DD DSN=SYSXXX.XXXX.XXX.TEST,
// DISP=(NEW,CATLG,DELETE),
// UNIT=3390,
// SPACE=(CYL,(1,2),RLSE),VOL=(,,,3),
// DCB=(RECFM=FB,LRECL=80,DSORG=PS)

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.

Is it correct?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 22, 2010 7:34 pm
Reply with quote

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).
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 22, 2010 8:03 pm
Reply with quote

And also keep in mind that the allocation of a dataset extent may be satisfied by up to 5 physical extents.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 22, 2010 8:06 pm
Reply with quote

I thought of mentioning that, expat, then saw the post had CYL=((1 so I decided the point was moot.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 22, 2010 8:15 pm
Reply with quote

I only mentioned it because the secondary space request was higher than 1.

Anyway, I'm bored at the moment and for the want of anything better to do icon_lol.gif
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Tue Jul 27, 2010 2:17 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
No new posts split a name based on space in ASM PL/I & Assembler 9
Search our Forums:

Back to Top