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: 15
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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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