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 

Space allocation with DISP=SHR

 
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
momatwork
Beginner


Joined: 14 Feb 2005
Posts: 2
Topics: 1

PostPosted: Mon Feb 14, 2005 4:31 pm    Post subject: Space allocation with DISP=SHR Reply with quote

I keep having space issues (B37 abends) on a step in one of my jobs.
It uses a dataset with a disp=shr, that also includes a space allocation.
Is the space allocation used with a shared dataset actually used? Since the file exists, wouldn't it ignore the the space allocation? I cannot find an answer to this question.
//SORTOUT DD DSN=mydataset ,
// DISP=SHR,
// UNIT=(SYSDA,9),
// SPACE=(CYL,(250,350),RLSE),
// DCB=RECFM=FB
Back to top
View user's profile Send private message
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Tue Feb 15, 2005 7:33 am    Post subject: Reply with quote

As per my understanding, giving a space parameter for disp=shr will have no impact on the space allocation.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue Feb 15, 2005 8:49 am    Post subject: Reply with quote

If your dataset was originally allocated with zero secondary space amt, you can add a secondary amt by including the SPACE parameter on the DD.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Feb 15, 2005 10:21 am    Post subject: Reply with quote

momatwork,

Check this link which explains in detail about allocating space depending on the no: of records and lrecl

http://www.mvsforums.com/helpboards/viewtopic.php?t=28&highlight=optimum

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


Joined: 14 Feb 2005
Posts: 2
Topics: 1

PostPosted: Tue Feb 15, 2005 10:48 am    Post subject: Reply with quote

kolusu,
thanks for the allocation reference. i will use that BUT...does a space allocation on a shared dataset get looked at? refer to my code in first post.
thanks, momatwork
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Feb 16, 2005 1:07 pm    Post subject: Reply with quote

Refer to my post above:
The primary amt is ignored because the dataset already has space allocated. The secondary amt will be used if the datasets needs to take another extent.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
mahendar.n
Beginner


Joined: 28 Feb 2005
Posts: 7
Topics: 5

PostPosted: Mon Feb 28, 2005 1:06 am    Post subject: Reply with quote

I have a output file for which the primary and secondry qtys are already allocated .

Consider the output file needs to be expanded.
If i give the space parameter will it override the allocated space ???????

I gone thru this topic still the Answer for this not clear.

can i extend the space for the file dynamically in jcl or not???????
pls clarify
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Feb 28, 2005 8:48 am    Post subject: Reply with quote

mahendar.n,
Quote:

can i extend the space for the file dynamically in jcl or not???????


Not really ! Unless the dataset is sms managed and is defined with an extended attribute.

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
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Feb 28, 2005 9:04 am    Post subject: Reply with quote

If you read my answers you'll see that the new secondary type and quantity will be used when specified on the DD with DISP=SHR and the dataset needs another extent. Am I wasting my keystrokes?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
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