We can use IEBGENER to write the Job into internal reader (INTRDR) as the last step in the current job as below:
//LASTSTEP PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRNT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=YOUR.BATCH.JCL(JOBNAME),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
No comments:
Post a Comment