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 

Override SPACE parameter when LIKE is used.

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


Joined: 29 Nov 2003
Posts: 68
Topics: 14

PostPosted: Wed Jul 28, 2004 12:22 pm    Post subject: Override SPACE parameter when LIKE is used. Reply with quote

I have below JCL:
Code:

//JSTEP010 EXEC PGM=SORT,REGION=0M                       
//SORTIN   DD  DISP=SHR,DSN=&INFILE                       
//SYPRINT  DD  SYSOUT=*                                   
//SYSOUT   DD  SYSOUT=*                                   
//OUTPUT01 DD  DSN=&OFILE,                               
//             DISP=(NEW,CATLG,DELETE),                   
//             LIKE=&INFILE                               

But the output01 has still some space unreleased.Now I want to give RLSE w/o giving primary and secondary space.
I tried SPACE=(,,,RLSE) but this does not work.
_________________
Regards,
Shivprakash
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jul 28, 2004 12:31 pm    Post subject: Reply with quote

Shiv,

Try this

Code:

//LASTSTEP EXEC PGM=IEBGENER                           
//SYSPRINT DD  SYSOUT=*                                 
//SYSUT1   DD  DUMMY,DCB=&INFILE
//SYSUT2   DD  DSN=FILE WHOSE SPACE NEEDS TO BE RELEASED,   
//             DISP=(MOD,KEEP,KEEP),                   
//             SPACE=(TRK,(1,0),RLSE)                   
//SYSIN    DD  DUMMY         


Check this link which discusses to calculate the optimum space allocation based on the LRECL & RECFM

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

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


Joined: 29 Nov 2003
Posts: 68
Topics: 14

PostPosted: Wed Jul 28, 2004 5:22 pm    Post subject: Reply with quote

Kolusu,

My question was not framed correctly.I want to know if the ONLY RLSE parameter can be OVERRIDEN w/o specifying primary and secondary space subparameters.
_________________
Regards,
Shivprakash
Back to top
View user's profile Send private message Yahoo Messenger
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