MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
Bravo Beginner Joined: 05 Dec 2005 Posts: 26 Topics: 12
Posted: Wed Apr 19, 2006 3:10 pm Post subject: Question on Volume parameter
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
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Wed Apr 19, 2006 3:20 pm Post subject:
Bravo ,
The correct syntax is
Code:
REF=*.stepname.procstepname.ddname
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu
Back to top
Bravo Beginner Joined: 05 Dec 2005 Posts: 26 Topics: 12
Posted: Wed Apr 19, 2006 4:23 pm Post subject:
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
Bravo Beginner Joined: 05 Dec 2005 Posts: 26 Topics: 12
Posted: Wed Apr 19, 2006 5:14 pm Post subject:
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
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