A Message Processing routine is added to the sample CAZ1REXX exec to demonstrate how to modify the severity level of a CA JCLCheck WA error message. This Knowledge Document describes what needs to be done to use this new Message Processing routine.
The severity level of any CA JCLCheck WA error message can be altered using one or more of the following methods:
- Modify csect JCLMSG
- Use runtime option MCOSYS
- Use runtime option MCOUSR
- Use Assembler exit CAZ1XERR
- Use a REXX exec.
This Knowledge Document describes the latest method which uses a REXX exec.
To alter the severity level of an error message, specify runtime option REXXMSG and STDREXX(rexxexec) on the CA JCLCheck WA job. The REXX exec name is user-defined, and the library containing the REXX exec must be allocated to a SYSEXEC DD statement before CA JCLCheck is executed. The CA sample REXX exec is named CAZ1REXX and is located in the CAZ2OPTN library.
The following REXX routine changes error message CAY6093E to an informational message CAY6093I.
/* Reset the 'PROGRAM xxxxxxxx NOT FOUND' message severity to 'I'. */
IF MSG.NUMBER = '093' THEN DO
MSG.SEVERITY = '00'
SEV_CHANGED = 'Y'
As always, please contact CA Technologies support for CA JCLCheck Workload Automation if you have further questions.