CICS-Routing Error Logs to Batch Job

In two ways we see the CICS error logs:

  • Batch
  • Online-CEMT and CSMT

You can run a batch job, such as DFHJUP, to read and process CICS log data in MVS system logger log streams and in MVS SMF data sets.

The following Batch job will be run on each LPAR to route error messages to TSO:

//PRNTJNL EXEC PGM=DFHJUP
//STEPLIB  DD DSN=CICSTS23.CICS.SDFHLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//STEP1    DD DSN=IXGLOGR.ATR.ADCDPL.MAIN.UR.A0000000,
//         DCB=BLKSIZE=32760,
//         SUBSYS=(LOGR,DFHLGCNV,
// ‘FROM=(2005/001,00:00),TO=(2005/160,23:50),LOCAL’)
//SYSIN    DD  *
  OPTION PRINT
END

The other way is:

CEMT INQ JOU . “JOU’ is the name of the journal.

Also, CSMT we can see the error logs:

maximum number of tasks            CSMT MAX,{INQ/n}
maximun number of active tasks    CSMT AMXT,{INQ/n}
maximum number of class tasks    CSMT CMXT,{INQ/n},CLASID=m
task list                                        CSMT TAS
terminate a task                            CSMT TRMNAT,YES,n
terminate a task by a terminal        CSMT TRMNAT,TERMID=xxxx
ena/dis transaction                        CSMT
{ENA/DISAB},{SINGLE/LIST/CLASS/ALL},TRNACT,{TRANIS=xxxx/TRANID=xxxx,xxxx/CLASSID=xx}
status of a program                        CSMT
SIN,PRO,INQ,PGRMID=xxxxxxxx
ena/dis program                            CSMT
{ENA/DISAB},{SINGLE,LIST,CLASS,ALL},PRO,{PGRMID=xxxxxxxx,xxxxxxx/CLASID=xx}

newcopy                                        CSMT NEW,PGRMID=xxxxxxxx
inquire dataset                                CSMT
DAT,INQ,{ALL/FILEID=xx,xx,xx}
set dataset status                            CSMT
DAT,{ON/OFF},{READ/UPDATE/ADD/EXCLUSIVE/BROWSE/DELETE}/{ALL/FILEID=xx,xx,xx,}ena/dis dataset                                CSMT
{ENA/DISAB},DAT,{ALL/FILEID=xx,xx}
open/close dataset                      CSMT
{OPEN/CLOSE},DAT,{ALL/FILEID=xx,xx}
switch dump dataset                    CSMT SWI
inquire terminal                            CSMT
TERMNL,SIN,INQ,TERMID=xxxx
change terminal                            CSMT
TERMNL,{SINGLE/LIST},{TRNACT/RECV/TRNCV/INP/AUTO/PAGE},TERMID=xx,xx
change terminal status                      CSMT
TERMNL,{SINGLE/LIST/CLAS/ALL},{INSRV/OUTSRV},DSPLY,{SUS/TRMNAT/INT},{TERMID=xx,xx/CLASIS=xx}

release terminal                                CSMT
TERMNL,SIN,REL,TERMID=xxxx
acquire terminal                          CSMT
TERMNL,SIN,ACQ,{COLD},TERMID=xxxx
shutdown CICS                        CSMT SHU,{YES/NO},{DUMP},xlt,plt

About these ads