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 

Question on Volume parameter

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
Bravo
Beginner


Joined: 05 Dec 2005
Posts: 26
Topics: 12

PostPosted: Wed Apr 19, 2006 3:10 pm    Post subject: Question on Volume parameter Reply with quote

Hi All,

I have two procs PROC1 and PROC2 in a Job. A dataset DS1 is created in tape in proc PROC1.Now I want to create another file DS2 in PROC2 which should refer the tape Volume parameter of DS1 in PROC1.

I tried in PROC2 for DS2 dataset as
Code:

VOL=(,RETAIN,REF=*.PROC1.STEP030.SORTOUT),


but it says invalid volume parameter.

Any suggestion please
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 19, 2006 3:20 pm    Post subject: Reply with quote

Bravo,

The correct syntax is

Code:

REF=*.stepname.procstepname.ddname


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


Joined: 05 Dec 2005
Posts: 26
Topics: 12

PostPosted: Wed Apr 19, 2006 4:23 pm    Post subject: Reply with quote

As per your suggestion I tried the same and got an error.

Here the JCL..

Code:


//PROD010  EXEC PROC1   
//PROD015  EXEC PROC2   
//*                     


Here are proc1

Code:


//STEP030  EXEC PGM=SORT                                 
//SORTIN    DD DISP=SHR,DSN=XXX.YYY       
//SORTOUT   DD DSN=XXX.YYY.OUTFIL1,         
//             DISP=(NEW,CATLG,DELETE),                   
//             UNIT=TAPE80,VOL=(,RETAIN)                 
//SYSOUT    DD SYSOUT=*                                   
//SYSIN   DD DSN=XXX.YYY.DDD(SRTCPY),DISP=SHR       
//*                                                       



Here is the PROC2

Code:

//STEP035  EXEC PGM=SORT                                     
//SORTIN    DD DISP=SHR,DSN=XXX.YYY
//SORTOUT   DD DSN=XXX.YYY.OUTFIL2,             
//             DISP=(NEW,CATLG,DELETE),                     
//             UNIT=TAPE80,                                 
//             VOL=(,RETAIN,REF=*.STEP035.STEP030.SORTOUT), 
//             LABEL=(2,SL),EXPDT=99000                     
//SYSOUT    DD SYSOUT=*                                     
//SYSIN   DD DSN=XXX.YYY.DDD(SRTCPY),DISP=SHR       
//*                                                         


Error msg
IEF645I INVALID REFERBACK IN THE REF SUBPARAMETER OF THE VOLUME FIELD


Please correct me if I'm wrong
Back to top
View user's profile Send private message
Bravo
Beginner


Joined: 05 Dec 2005
Posts: 26
Topics: 12

PostPosted: Wed Apr 19, 2006 5:14 pm    Post subject: Reply with quote

Problem is resolved.

I have mistakenly referred PROC1 rather than the STEPNAME that executes the PROC1.

its

Code:
REF=*.PROCSTEPNAME.STEPNAME.DDNAME


i.e

Code:
REF=*.PROD010.STEP030.SORTOUT


Thanks for the hint
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 -> Data Management 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