Where can the return codes for the OPSUBMIT function be found?
OPS/MVS
The OPSUBMIT function does not have it's own return codes. There are 2 types of errors that could occur when using OPSUBMIT(), REXX errors such as ERROR 40 Invalid call to Routine OR Invalid arguments; and Dynamic allocation errors from the IBM macro DYNALLOC. Normally the DYNALLOC errors are produced via MVS messages and contain specific reason codes.
The Return codes for Dynamic Allocation can be found here: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.ieaa800/erc.htm#erc__mjfig7
CR24 - SSC - Removed release information.