Before executing an OPS/REXX program as a batch job, note that:
Positive numeric values specified on the RETURN statement are retrieved as the return code.
You cannot use the ADDRESS TSO and ADDRESS ISPEXEC environments in batch mode.
Batch programs may be a better place to run long-running REXX programs than servers, which do best at processing short-term jobs.
When an OPS/REXX program runs as a batch job or as a started task and you are either running multiple CA OPS/MVS copies on one system or the subsystem where CA OPS/MVS runs is not called OPSS, you can ensure that the program executes on the correct subsystem. To do so, specify the following when invoking the program or submitting the batch job: