MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JCL ERROR

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Tue Feb 21, 2006 2:42 am    Post subject: JCL ERROR Reply with quote

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
View user's profile Send private message
aquarian
Beginner


Joined: 28 Sep 2005
Posts: 66
Topics: 17
Location: Mars

PostPosted: Tue Feb 21, 2006 2:51 am    Post subject: Reply with quote

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 Smile
_________________
cheers,
Aquarian
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Tue Feb 21, 2006 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Tue Feb 21, 2006 8:12 am    Post subject: Reply with quote

ha.rajamohamed,

You canNOT capture JCL errors.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group