Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REXX to open SYSLOG/SDSF

Status
Not open for further replies.

kagolf

IS-IT--Management
Apr 5, 2006
1
US
Hi all,

Do you know please if you can helping with example. How I
can search some jobnames that was finished in two days ago. I want to know if job was Ok and all cond cond for within step in Syslog or SDSF.

How I can to do ?

For example : Jobname TEST2 finisned with 10 steps.

Lookbelow SDSF Show in :

SDSDF HELD OUTPUT

JOBNAME jobid crddate dest max-rc
test2 0001 05/06/2006 local 08.


I want to find job TEST2 and search all steps and
give the cond cond in output file.

Regards,
 
There may be a REXX way of doing this, but I have JCL that can get you the steps JESMSGLG in a data set that you can parse out the steps and condition codes using REXX, and the JCL can be dynamically built in REXX as well. Anyway here is the JCL that I have changed to hopefully get you what you are looking for at least where you can parse the data to get the steps. You will need to change the job card to match your shop, and you can change the LOGFILE data set to anything that suits your shop.I hoep this helps.

//XXXXXXXX JOB (XXXX,XX),'XXXXXX',CLASS=X,MSGCLASS=X,
// NOTIFY=&SYSUID
//SDSFBTCH EXEC PGM=SDSF
//ISFOUT DD SYSOUT=*
//LOGFILE DD DISP=(,CATLG),UNIT=3390,DSN=XXXX.TEST.OUTPUT,
// SPACE=(TRK,(30,30),RLSE)
//ISFIN DD *
PRE TEST2
OWNER
ST
FIND TEST2
++?
FIND JESMSGLG
++S
PRINT FILE LOGFILE
PRINT
PRINT CLOSE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top