I can extract the JESGMSGLG of particular job using below code,
DATAOUT DD DSN=SYSID.DATASET.JES, DISP=MOD
//ISFIN DD *
ST
PRE LOGNAME0
FILTER JOBNAME EQ LOGNAME0
FIND 'LOGNAME0'
++?
FIND 'JESMSGLG'
++S
PRINT FILE DATAOUT
PRINT 1 999
PRINT CLOSE
END
So now am have JESMSGLG data of the LOGNAME0 into this file "SYSID.DATASET.JES",
The file attributes are mentioned here below,
Current Allocation
Allocated tracks . : 776
Allocated extents . : 156
Organization . . . : PS Current Utilization
Record format . . . : FBA Used tracks . . . . : 696
Record length . . . : 5004 Used extents . . . : 141
Block size . . . . : 5004
1st extent tracks . : 1
Secondary tracks . : 5
The log data resides in the dataset like ERROR(E),WARNING(W),INFORMATION(I) with timestamps...
INPUT FILE DATA:
---- THURSDAY, 24 FEB 2011 ----
02.14.32 S0038798 +DFHAM4835 E LOGNAME0 849
849 Install of TDQUEUE PZST failed because the queue has already been
849 defined to the system, and initialization is still in progre
(Here in above, msg is spanning in multiple lines with continution number as 3 digit(which needs to remove in my o/p file) )
15.02.51 S0038798 +PGMNAME1.0006E LOGNAME0 AZIG Abend encoutered in PROGRAM1.
I need eeror messages with time stamps and current date alone only in my output file ,No need of warning and information messages ,
And omit all the previous days JESMSGLG data,
OUTPUT FILE data should be like below in single line foramt,
02.14.32 DFHAM4835 E LOGNAME0 849 Install of TDQUEUE PZST failed because the queue has already been defined to the system, and initialization is still in progress.CURRENT DATE.
15.02.51 PGMNAME1.0006E LOGNAME0 AZIG Abend encoutered in PROGRAM1.CURRENT DATE
COuld you please help me?