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: 4649
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 EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


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