Hello,
I have a REXX which creates a jcl. This jcl executes a cobol program which creates another JCL(shown below) and submits it.
//SORTXX ...
....
/*ROUTE XEQ DD
//SORTSTEP EXEC PGM=SORT
//SORTIN DD DSN=xxx.yyy.zzz.DATA,
// DISP=SHR
//SORTOUT DD DSN=xxx.yyy.zzz.data.extract,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(10,50),RLSE)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(143,007,EQ,4235534)
//INTRD01 EXEC PGM=IEBGENER,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=xxxx.yyyy.zzzz.JCL(NDM1)
//SYSUT2 DD SYSOUT=(1,INTRDR)
//SYSIN DD DUMMY
The above JCL will submit another JCL in xxxx.yyyy.zzzz.JCL(NDM1)
//NDM1 ....
...
//S09 EXEC PGM=utility,
// PARM='&SYSUID,BA,CYCL'
//*
//INDD DD DSN=ABCD.CTC(NDM1CTC),
// DISP=SHR
//OUTDD DD DSN=&&NDMDATA,
// DISP=(NEW,PASS),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=1680),
// SPACE=(TRK,(1,1)),
// UNIT=SYSALLDA
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//*
Now, This 'CYCL' is accepted from REXX and is used in NDM1 job to create control card NDM1CTC.
I need to pass the value from REXX to NDM1 job as a paramter. As per my knowledge, I cannot pass CYCL from INTRD01 step to the next JCL(NDM1).
Please suggest.