IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to catch the ABEND using COND verb in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Mon Jun 13, 2005 8:01 pm
Reply with quote

could anyone please tell me how can i catch abend codes using only through cond verb in the jcl.

please dont tell me we can catch using if abend=<abend-code>.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Jun 13, 2005 8:28 pm
Reply with quote

If you don't want to use the cond parameter you can use a structure IF-THEN/ELSE/ENDIF in your jcl and test the Return Code of a step as you can see below:
Code:
//STEP010P EXEC PGM=PROG1
...
//IFPGM1 IF STEP010P.RC = 12 THEN
//STEP020P EXEC PGM=PROG2
...
//IFPGM1 ELSE
//STEP030P EXEC PGM=PROG3
...
//IFPGM1 ENDIF

Or if you have a scheduler(I only know OPC) there are several method to accept the error and work in consequence of it.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Jun 13, 2005 11:19 pm
Reply with quote

You'll want to look here:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/16.5?DT=20040712170508
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top