View previous topic :: View next topic |
Author |
Message |
ha.rajamohamed Beginner
Joined: 29 Jan 2006 Posts: 71 Topics: 22
|
Posted: Tue Feb 21, 2006 2:42 am Post subject: JCL ERROR |
|
|
Hi,
In JCL we can trap the JCL abend by having COND=ONLY, based on which we can execute some steps.
In the similar manner, there is a possibility of JCL ERROR in my job. I need to execute one step if I comeacross any JCL ERROR. Is there any way in JCL in order to trap the JCL ERROR.
Thanks |
|
Back to top |
|
 |
aquarian Beginner

Joined: 28 Sep 2005 Posts: 66 Topics: 17 Location: Mars
|
Posted: Tue Feb 21, 2006 2:51 am Post subject: |
|
|
check the return code of previous step and write an if condition based on the condition..
I am not sure of this ..but giving u an idea  _________________ cheers,
Aquarian |
|
Back to top |
|
 |
ha.rajamohamed Beginner
Joined: 29 Jan 2006 Posts: 71 Topics: 22
|
Posted: Tue Feb 21, 2006 2:59 am Post subject: |
|
|
I need to trap the JCL ERROR in the similar manner how JCL ABEND is trapped.
For Example:
My Job haves totally 20 steps and I am having an notification in the last step having COND=ONLY. If the job abends in any of the step 1 to 19, this STEP020 will run. If the job went fine the STEP020 will not run.
In the same way as above for abend, I need one for JCL ERROR. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
Posted: Tue Feb 21, 2006 8:12 am Post subject: |
|
|
ha.rajamohamed,
You canNOT capture JCL errors.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|