To enhance the core error processing, Natural Business Services supplies the SPSERRN2 user exit. This user exit allows you to add special error processing, such as sending notification of errors to the operator.
To create and activate custom error processing:
Edit the user exit in the SYSBIZ library.
Copy the object code for the modified user exit to the SYSLIBS library.
Notes:
The SPSERRN2 user exit uses the CDERRLD2 parameter data area, which contains the following parameters:
MSG_TYPE
ERROR_TYPE
MSG_CATEGORY
ERROR_CLASS
ERROR_LIBRARY
ERROR_PROGRAM
ERROR_NUMBER
ERROR_LINE
ERROR_LEVEL_NBR
ERROR_MSG
NBS_SERVICE
NBS_DOMAIN
NBS_METHOD
PROCESS_DESCRIPTION
ERROR_DATE
ERROR_TIME
ERROR_TIMESTAMP
The SPSERRN user exit is supplied for backwards compatibility. You should use the SPSERRN2 user exit for all new development.
SPSERRN uses the CDERRLDA parameter data area, which contains the following parameters:
ERROR-NR
ERROR-LINE-NR
ERROR-STATUS
ERROR-PROGRAM
ERROR-PROGRAM-LEVEL