Customizing Release Area Audit
You can customize the ERO release area audit to fit your needs in two ways:
-
Change the content and format of the release audit report - Modify sample report program CMNRARPT, which is written in COBOL and delivered in the CMNZMF ASMSRC library, or write your own report program. See Sample Audit Report Program CMNRARPT.
-
Change the description and handling of the area audit error numbers assigned by program CMNRA000 - Modify the contents of Db2 table CMNERRORTYPES.
These are the columns in Db2 table CMNERRORTYPES.
Table Column | Description |
---|---|
INT_ERROR_NUMBER | Error number - See Area Audit Error Numbers. |
TXT_ERROR_TYPE | Error type - Valid values: E Error W Warning I Information |
TXT_ERROR_AUTO | Allow auto resolve N Suppress auto resolve for this error number. Y [Any value except N] Allow auto resolve if this error number would ordinarily trigger it. |
INT_ERROR_SEVERITY | Audit return code (severity of this error condition) See Area Audit Return Codes. |
TXT_SHORT_DESC | Short description |
MEM_LONG_DESC | Long description |
MEM_RESOLUTION | Error resolution text |
Table CMNERRORTYPES is populated by job CMNLDERT from comma-delimited data in member ERRORTYP in the delivered CMNZMF ERR library. Job CMNLDERT includes DROP / Area Audit Db2 Considerations
CREATE for table CMNERRORTYPES, so the easiest way to modify the table data is to modify the text in ERRORTYP and run job CMNLDERT.
This is a sample record from member ERRORTYP (wrapped to multiple lines).
411,"E","Y",12,"DESIGNATED COMPILE PROCEDURE NOT USED","SOURCE COMPONENT HAS NOT BEEN
COMPILED WITH THE DESIGNATED COMPILE PROCEDURE AND/OR COMPILE/BINDER/USER
OPTIONS.","REBUILD THE SOURCE USING THE DESIGNATED COMPILE PROCEDURE."
Preserve the original content of member ERRORTYP by copying the vendor version from the CMNZMF ERR library into a custom ERR library, then make your changes in the custom library.
Note
To see what audit program CMNRA000 is doing, use the TRC= SYSIN parameter: TRC=YES - Writes informational messages with timestamps to SYSPRINT. TRC=BAS - Writes informational messages to SYSPRINT with timestamps and listings of baseline member names being used. Note that TRC=BAS produces large amounts of output.