I am trying to figure out a way to use a zeke variable in my jcl to determine which GDG version of a dataset should be used in a job. Does anyone know of a way to do this?
See sample JCL below as to what I have tried and keep getting a JCL error. I created a zeke variable $F1T07R
//WORKCOPY EXEC PGM=IEBGENER
//*******************************************
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSN=$F1T07R,DISP=SHR
//SYSUT2 DD DSN=WK.PRT07T.TEST,
// UNIT=DISK,DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(*.SYSUT1)
See sample JCL below as to what I have tried and keep getting a JCL error. I created a zeke variable $F1T07R
//WORKCOPY EXEC PGM=IEBGENER
//*******************************************
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSN=$F1T07R,DISP=SHR
//SYSUT2 DD DSN=WK.PRT07T.TEST,
// UNIT=DISK,DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(*.SYSUT1)