Standard Return Codes

Each exit routine issues a return code (a multiple of 4) in R15 when it returns control to RSCS. This return code tells RSCS how it should continue to process the task from which the exit routine was called. All exit routines issue return codes 0 and 4, which tell RSCS to continue its processing as if the exit point was not enabled.

Return Code Results
0 RSCS calls the next exit routine associated with this exit point and continues processing the task.
4 RSCS does not call any other exit routines associated with this exit point and continues usual task processing.

Exit routines may also issue other return codes (8 or greater) that tell RSCS to modify its processing of the task. These return codes, if applicable, are described for each exit point.