Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to get last running return code and which step abend?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vice_versa
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 16
Location: usa

PostPosted: Fri Sep 19, 2008 11:57 pm    Post subject: How to get last running return code and which step abend?
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat Sep 20, 2008 12:03 am    Post subject: Reply to: How to get last running return code and which step
Reply with quote

Does this previous topic help?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sat Sep 20, 2008 1:11 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us