-REXC (REXX command)
The -REXC command causes AEXEMAIN to attach the program IKJEFT1B, which processes a REXX EXEC or any other TSO command.
If the return code is greater than 4, AEXEMAIN stops the worklist processing. To use -REXC (Figure 1), perform the following task:
- Either dynamically or by JCL, allocate any files needed to process the EXECs.
- Send the return code back through IKJEFT1B.
To send the return code back through IKJEFT1B, include a final REXX statement of EXIT RC, where RC is the return code to pass back to AEXEMAIN. If the product does not pass the return code back to AEXEMAIN, AEXEMAIN receives a 0 return code and continues to process the worklist unless the command abends.
Figure 1. -REXC command
-SSID 000001 DBDA
-WKID 000002 SKHREXX.UTILITY
-SYNC 000003
-REXC 000004 EXEC 'SKH.CLIST(TESTRX)'
To restart a REXX command, use the AEXIN parameter of RESTART. Using the RESTART parameter causes processing to begin with the sequence number that failed. To restart and skip the command processing, modify the worklist and replace the -REXC command with -NOOP. Using the -NOOP command causes a 0 return code, and the worklist continues processing.