Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
There are three programs to choose from when running REXX in batch; IKJEFT01, IKJEFT1B, and IRXJCL. Each has its own good and bad points.
IKJEFT01 is the traditional program name used for the TMP. Look at any of your standard logon procedures and you are likely to see this name used. As long as you have the correct DD statements allocated the step will normally end with cond-code 00. The two required DD statements are SYSTSIN and SYSTSPRT. Failure to include these two DD statements will result in U102 abends. Processing of multiple commands included in the SYSTSIN stream ends after the last command in the input stream. REXX code can be found from either SYSPROC or SYSEXEC.
IKJEFT1B will normally end with the cond-code of your last command?s return code. Processing of multiple commands included in the SYSTSIN stream ends with the first non-zero return code from any command in the input stream. REXX code can be found from either SYSPROC or SYSEXEC.
Add to this,
IRXJCL will process only one command, passed via the PARM operand. Unlike the TMP programs, SYSTSIN is used as standard input for the command specified on the PARM operand. This program is limited to REXX only code, no TSO/E commands are allowed. REXX code must be found in SYSEXEC.