Why does the View Selection List XCODE field show the last exception code in the job?
The parameters FIRST, LAST, and HIGH are provided to specify whether the exception code for the first, last or highest exception condition for the SYSOUT group should be retained in the group control record. The FIRST, LAST, and HIGH keywords are mutually exclusive. LAST is the system default.
If you want the First exception code to be the one that is listed, add a global entry to the Exception Code Table (SARXCTAB) as follows:
If you want to display JCL errors, use the HIGH parameter:
CA View looks at the JES data sets for messages.
The three JES data sets are archived in the following order:
- The messages log (JESMSGLG)
- The JCL (JESJCL)
- The system messages (JESYSMSG)
The default exception code processing is LAST. The JCL error message (IEF453I) appears in the JESMSGLG.
The condition code message (IEF142I) appears in the JESYSMSG, which would be the LAST exception code.
To see the JCL error, a global entry should be in the Exception Code Table (SARXCTAB) as follows: