Previous Topic: Special Note for CAZ1XERRNext Topic: JES Statement Exits


Special Note for CAZ1XSTE, CAZ1XEOJ, and CAZ1XEOF

The $JCLERR requires that R9 point to a valid SPB (Statement Pointer Block). The CAZ1XSTE, CAZ1XEOJ, and CAZ1XEOF are not entered with R9 pointing to an SPB. Therefore, prior to issuing the $JCLERR macro, R9 must be initialized to the address of the SPB for the statement with which the error message is to be associated.

Failure to initialize R9 may result in unpredictable results, including ABENDS. If R9 is zero, CA JCLCheck uses the SPB for the current JOB statement. The global data area has numerous SPB pointers, which can assist you in determining the correct SPB to use. For example, $LASTSPB is a pointer to the last valid SPB on the chain.