Hello Cesar, the macros are for creating and running your own Health Checks. I am trying to get to the data that is displayed if you go to SDSF and select a CK entry that has an exception. My goal was to recognize the HZS* message and issue a line command or start a Tso session that would allow me to capture the detail in the actual health check.
Example in IBM health check IBMCSV,CSV_APF_EXISTS. When there is an exception a message is create in the log.
This is what comes out in the syslog:
HZS0001I CHECK(IBMCSV,CSV_APF_EXISTS): 152
CSVH0957E Problem(s) were found with data sets in the APF list.
But when you select the entry for the health check there is additional information that does not appear in the log to capture:
COMMAND INPUT ===> SCROLL ===> CSR
TOP OF DATA *********************************
CHECK(IBMCSV,CSV_APF_EXISTS)
SYSPLEX: TSTPLEX SYSTEM: SYSS
START TIME: 01/18/2017 08:59:36.769413
CHECK DATE: 20071120 CHECK SEVERITY: LOW
CHECK PARM: MIGRATEDOK(SYSTEM)
CSVH0955I A problem was found with each APF list entry displayed.
This is the information I would like to capture.
VOLUME DSNAME ERROR
CATJ22 LPALST.SYSS.OEMMODS DS not found
DB2ST1 ORACLE.AM4CICS.TEST.LOADLIB DS not found
DB2ST1 ORACLE.GISA.LOADLIB DS not found
DB2ST1 ORACLE.MECD.LOADLIB DS not found
DB2ST1 ORACLE.PRMT.LOADLIB DS not found
DB2ST1 ORACLE.RARD.LOADLIB DS not found
DB2ST1 ORACLE.TCID.LOADLIB DS not found
SMS SGS.IDF5004.LINKLIB Allocation failure
ZOSR11 ZOS22.SYS1.LINKLIB DS not found
Low Severity Exception *
CSVH0957E Problem(s) were found with data sets in the APF list.
I would like to capture the CSVH0955I message and the dataset names and put them in an email or ticket.