Submitting to the internal reader from jobs or tasks
Figure 1 shows a step from a job (or task) that submits a job to the internal reader.
Figure 1. Submitting a Job to the Internal Reader
⋮
//STEP9 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=Z
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
//SYSUT1 DD DATA,DLM=XX
//MYJOB1 JOB ACCT,VAZQUEZ,CLASS=A
//STEP1 EXEC PGM=CRUSHER
//ERRORS DD SYSOUT=A
//INPUT DD DSN=JES2.INIT.TUNE,DISP=SHR
//OUTPUT DD DSN=SMALL.BOOK,DISP=SHR
XX
//STEP10 EXEC …
⋮
Step 9 writes the JCL that follows the STEP9 SYSUT1 card (up to the XX which acts as a delimiter) to a SYSOUT data set used as input to the INTRDR program.
If the ACB interface was used to open the internal reader, you can use the ENDREQ macro to complete the submission of jobs. For more information about coding the ENDREQ macro, see z/OS DFSMS Macro Instructions for Data Sets and z/OS V2R1.0 Communications Server: SNA Programming. For more information about JES control statement processing, see JES control statements that affect the internal reader.