View previous topic :: View next topic
|
Author |
Message |
vice_versa Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 19 Location: usa
|
|
|
|
Code: |
JoB like below:
//Step001 exec pgm=program1
//Step002 exec pgm=program2
//Step003 exec pgm=program3
//Step004 exec pgm=program4 |
QA1:I want to get last runing return code(IE Step001,Step002,Step003
may all run,also run 1 or 2 step2)
QA2:If Step001 is abend,Step002 and Step003 not running,
in step004 how can I know which step abend? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
To detect abends in a particular step, You could choose one of several versions of STEP4 by using the IF/THEN/ELSE test
Code: |
// IF (STEP001.ABEND) THEN
//STEP004A EXEC PGM=program4
// ENDIF
]// IF (STEP002.ABEND) THEN
//STEP004B EXEC PGM=program4
// ENDIF
...etc... |
For capturing return codes by step, it's best done after the fact with a batch execution of SDSF to read the job output from spool. Search the REXX forum for SDSF. |
|
Back to top |
|
|
|