View previous topic :: View next topic
|
Author |
Message |
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
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 |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|