Assigning a return code

Your exit routine must pass a return code back to AMD2 in the parse exit common area field AMD2CCPX-CA-RETCOD. Valid values are:

0—Passes the SQL text on to DB2.

+1—Does not pass the SQL text to DB2 and continues with the next statement, if there is one.

+2—Aborts the batch and returns an error message using the message code in the AMD2CCPX-CA-MSCODE field.