WRITE EXSTATS Commands
Label | Command | Parameters |
---|---|---|
(Optional) | WRITE EXSTATS |
TYPE = ID MSGID = ID STARTT = ([date][,hh:mm:ssXM]) STOPT = ([date][,hh:mm:ssXM]) CCODE = completion code MSG.SHORTTEXT or MSST = text USER = name LNODE = name APPLICATION.NAME or APP.NAME = text FCODE = feedback code PNAME = name PNUMBER or PNUM = number SUBMITTER = name DSN = name MSG.LONGTEXT or MSGT = text SYMBOLIC.PARAMETERS or SYMBOLS = text UDF1= text UDF2= text UDF3= text UDF4= text |
For example, for writing statistics record of type identifier ‘YB’ to Connect:Direct Node1 and
from DMBATCH with message saying that all the DMBATCH steps executed
successfully.
WRITE EXSTATS TYPE = YB –
MSGID = XXXX001I –
STARTT = (01/01/2021,00:00:01) -
STOPT = (01/01/2021,00:01:00) -
CCODE = 0 –
MSST = ‘All DMBATCH steps executed successfully’
Once
above statistics record successfully written, you can display it by SELECT STATISTICS command as
follows: SELECT STATISITCS WHERE (TYPE=YB)
Record will be displayed as
follows:Function (YB)=> EXST - 6.02.00_DMBA Start Time=> 00:00:01 01.01.2021
Stop Time=> 00:01:00 01.01.2021
Comp Cod+Msg => 00000000 XXXX001I
User => BOB
Node => Node1
Application => 6.02.00_DMBATCH UI
Name
Msg ShortText=> All DMBATCH steps executed successfully
External Stat=> Yes