Posted: Tue Mar 30, 2021 11:29 am Post subject: Read SYSLOG
Hello,
Is there any utility or way to read the SYSLOG?
We need to extract job info like start time end time and RC (different jobs) after every x minutes. We tried using ISFAFD but that limits the # of jobs we can extract data for in a single job(255).
We use zeke scheduler and it provides report utility but using that utility to hit zeke log every x minutes may affect its performance hence trying the SYSLOG route.
Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
Posted: Wed Mar 31, 2021 9:33 am Post subject:
rsantosh,
Most shops offload the syslog to a dataset at regular intervals. So if your shop has that mechanism then you can run DFSORT to extract the information.
here is a JCL that will extract the information from syslog datasets. The JCL assumes that the syslog dataset is LRECL=137, RECFM=VBA
Code:
//********************************************************************
//* Use DFSORT JOINKEYS to generate the report for batch statistics *
//* from the syslog. *
//* *
//* Joinkeys will use the same syslog to match to itself *
//* *
//* INA will get jobid and jobnames that started using msg $HASP373 *
//* *
//* INB will get all the following values *
//* End time and EndRC from msg $HASP395 *
//* CPU TIME from msg TOTAL CPU TIME= *
//* ELapsed time is on the following Line after CPU time *
//* MAXCC is gotten from the msg MAXCC= (can also use $HASP165) *
//* *
//* A match is performed using JOBID and JOBNAME as keys and write *
//* out the matched values *
//* *
//********************************************************************
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//INA DD DISP=SHR,DSN=Your Syslog Dataset
//INB DD DISP=SHR,DSN=Same Syslog Dataset
//SORTOUT DD DSN=Your.REPORT,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
JOINKEYS F1=INA,FIELDS=(05,09,A, $ JOBID + COMMA
14,09,A) $ JOBNAME + COMMA
Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
Posted: Wed Mar 31, 2021 10:40 am Post subject:
rsantosh,
Scheduling a job every 15 mins does require resources. You need to make sure that the next time you run the job, it would pick the records from the next interval. Also you need to take care of data getting unloaded by your syslog offload. _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum