Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to catch the ABEND using COND verb in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
rsshanmugam

Active User


Joined: 08 Mar 2005
Posts: 53
Location: Chennai

PostPosted: Mon Jun 13, 2005 8:01 pm    Post subject: How to catch the ABEND using COND verb in JCL
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
References
MGIndaco

Moderator


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

PostPosted: Mon Jun 13, 2005 8:28 pm    Post subject:
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

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3380
Location: Charlotte,NC USA

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

You'll want to look here:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/16.5?DT=20040712170508
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1