i need to read all the data from the Syslog about my Jobs and write these into a member.
Preferably i would start the job and it would record automaticly for around 20 minutes, but i do not know if that is possible.
By reading other Posts online i came up with this:
000001 //JOBNAME JOB (XXX,XXXX),NAME,CLASS=G,
000002 // MSGCLASS=M,NOTIFY=&SYSUID
000003 //*
000004 //SDSF EXEC PGM=IKJEFT01
000005 //SYSPRINT DD DSN==&SYSUID.ALOGGER(LOG),
000006 // DISP=(SHR,CATLG,DELETE),
000007 // SPACE=(TRK,(10,5),RLSE),
000008 // DCB=(RECFM=FBA,LRECL=133)
000009 //SYSTSPRT DD SYSOUT=*
000010 //ISFOUT DD SYSOUT=* ),
000011 //LOGOUT DD DSN==&SYSUID.ALOGGER(LOG),
000012 // DISP=(SHR,CATLG,DELETE),
000013 // SPACE=(TRK,(10,5),RLSE),
000014 // DCB=(RECFM=FBA,LRECL=133)
000015 //SYSTSIN DD *
000016 SDSF
000017 //ISFIN DD *
000018 LOG
000019 FIL +SYSN SYSB
000020 PRINT FILE LOGOUT
000021 PRINT 09:00:00 09:00:01
000022 PRINT CLOSE
000023 //*
000002 // MSGCLASS=M,NOTIFY=&SYSUID
000003 //*
000004 //SDSF EXEC PGM=IKJEFT01
000005 //SYSPRINT DD DSN==&SYSUID.ALOGGER(LOG),
000006 // DISP=(SHR,CATLG,DELETE),
000007 // SPACE=(TRK,(10,5),RLSE),
000008 // DCB=(RECFM=FBA,LRECL=133)
000009 //SYSTSPRT DD SYSOUT=*
000010 //ISFOUT DD SYSOUT=* ),
000011 //LOGOUT DD DSN==&SYSUID.ALOGGER(LOG),
000012 // DISP=(SHR,CATLG,DELETE),
000013 // SPACE=(TRK,(10,5),RLSE),
000014 // DCB=(RECFM=FBA,LRECL=133)
000015 //SYSTSIN DD *
000016 SDSF
000017 //ISFIN DD *
000018 LOG
000019 FIL +SYSN SYSB
000020 PRINT FILE LOGOUT
000021 PRINT 09:00:00 09:00:01
000022 PRINT CLOSE
000023 //*
But i get far too much Information, i get the syslog from all maschines we have, instead of only sysb.
I also don't know how i can get the informations from only my job/s.
Thanks & Regards
Jackson