MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Doubt regarding space parameter

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Sun Jan 04, 2004 7:14 am    Post subject: Doubt regarding space parameter Reply with quote

Experts,

I coded SPACE=(CYL,(5,2),RLSE),UNIT=(,5) in jcl for PS dataset.

Please let me know, which is the correct one from the following

a. Maximum space = 5*((1*5)+(15*2)) CYLS

b. Maximum space = (1*5)+(15*2)+4*(16*2) CYLS

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sun Jan 04, 2004 11:49 am    Post subject: Reply with quote

Ravikumar,

The answer is option A. Coding Unit=(,5) requests that the system assign 5 devices to the data set. The system obtains the device type from the catalog. You coded SPACE=(CYL,(5,2),RLSE) which means you will get upto (5 + (15 * 2) = 35) cylinders on each of the 5 volumes provided that you have that many volumes in the Storage group. So the max size would 5 * 35 = 175 cylinders. If there is not enough free space on the DASD volumes, you could get a lot less than 35 cyl per volume. check the DSLIST(3.4) and it would show the summary of the total space of a dataset across all extents on all volumes.

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Mon Jan 05, 2004 5:35 am    Post subject: Reply with quote

Kolusu,

Thanks for your explanation.

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Tue Jan 13, 2004 4:38 pm    Post subject: Reply with quote

Actually the answer is B.

I seems that you are really asking "when the dataset is extended to a secondary volume, is the first allocate equal to the primary allocation, or the secondary allocation quantity?" The answer is the secondary quantity. The primary quantity is used only for the initial allocation on the first volume.

There are exceptions, such as SMS guaranteed space datasets, and extended format datasets.
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Wed Jan 14, 2004 12:01 am    Post subject: Reply with quote

Hi all,

I've always been under the impression that:

Code:
 SPACE=(CYL,(5,2),RLSE),UNIT=(,5)


Results in 1*5 + 15*2 or 35 CYLs allocated to the file. If the SPACE request couldn't be satisfied on one volume, the remaining 4 volumes could be used to satisfy the request, but the total maximum would still remain at 35 CYLs not 175.

Additionally, if the primary space couldn't be satisfied in one contiuous extent, up to four additional exents could be used to satisfy the primary allocation. In that case the secondary allocation would be reduced by up to four extents correspondingly.

Did I have it wrong all these years? I checked the JCL book I have and don't see any reference that would have me beleive differently. If I've got it wrong please point me to the doc source that proves it.

Regards and thanx, Jack.
Back to top
View user's profile Send private message
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Wed Jan 14, 2004 1:04 pm    Post subject: Reply with quote

Quote:
I've always been under the impression that:

Code:
SPACE=(CYL,(5,2),RLSE),UNIT=(,5)


Results in 1*5 + 15*2 or 35 CYLs allocated to the file. If the SPACE request couldn't be satisfied on one volume, the remaining 4 volumes could be used to satisfy the request, but the total maximum would still remain at 35 CYLs not 175.


This is from the IBM Using Data Sets manual

"You can allocate space for a multivolume data set the same as for a single
volume data set. DASD space is initially allocated on the first volume
only (exceptions are striped extended-format data sets and guaranteed
space data sets). When the primary allocation of space is filled, space is
allocated in secondary storage amounts (if specified). The extents can be
allocated on other volumes.

When a multivolume non-VSAM, non-extended-format data set extends to the next volume, the initial space allocated on that volume is the econdary
amount. "

The primary quantity (5 cyl in your example) must be allocated on the first volume, although it can be allocated in up to 5 extents if the volume is very fragmented (5 1 cyl extents in your example). It will extent it in 2 cyl increments on that volume until there are total of 16 extents on that volume. THEN it will go to a secondary volume and get space in 2 cylinder incrementals until that vol has 16 extents, etc
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jan 14, 2004 1:40 pm    Post subject: Reply with quote

Jack,

The link to bruce's post can be found here.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D410/1.3.3?DT=20020122112221

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Wed Jan 14, 2004 8:07 pm    Post subject: Reply with quote

Thanx guys,

I learned something new today. One ques, though:

I saw this
Quote:

1.3.3.2 Multivolume Non-VSAM Data Sets

When a multivolume non-VSAM, non-extended-format data set extends to the next volume, the initial space allocated on that volume is the secondary amount.

Wouldn't that make the total in our example 163 CYLs? Or did I miss something again? Confused

Ques 2: If Vol1 runs out of space after 2 secondary allocations, how does allocation proceed from there?

The remaining 13 on Vol2, the next 16 on Vol3, etc.?
Or the remaining 13 on Vol2, the next 16 on Vol2, etc.? Rolling Eyes Don't really need an ans, just an idle thought.

Regards, Jack.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group