Previous Topic: Considerations for Batch ExecutionNext Topic: Execute OPS/REXX Programs from USS


Execute OPS/REXX Programs from Batch (Under the Batch TSO TMP)

Use the following JCL to run the TSO TMP as a batch job step:

//          EXEC PGM=IKJEFT01
//          PARM='first command or CLIST to be executed'
//SYSPROC   DD DISP=SHR,DSN=user.clistlib
//SYSEXEC   DD DISP=SHR,DSN=user.rexxlib
//SYSTSPRT  DD SYSOUT=*
//SYSTSIN   DD *
   (TSO commands or clists to be executed
                   * including *
    OX commands to invoke OPS/REXX programs from data sets,
    OI commands to invoke OPS/REXX programs from //SYSEXEC,
    or both)
/*