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

To check JCL error using IF else operators.


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

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Jan 05, 2012 2:26 pm
Reply with quote

Hi,
My job is getting JCL error.
Can is use IF ELSE verb to check if job had JCL error and send the respective email.

Like for abend we have:
IF ABEND
of IF RUN (IF previous step went fine) Is it possible to check for JCL error on whole JOb or any specific step.

Regards,
Krunal Bafna
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jan 05, 2012 2:29 pm
Reply with quote

NO,

A JCL error terminates the job immediately with no option of further conditional processing.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jan 05, 2012 2:29 pm
Reply with quote

if job gets a jcl error, nothing after that will run rip !
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Jan 05, 2012 2:31 pm
Reply with quote

Hi,

NOOOOOOOOOOOOOOOOOOOOOOOOOO


Gerry
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 05, 2012 9:15 pm
Reply with quote

Hello,

Properly implemented Production jobs should "never" experience a JCL error. If this ever does happen, the implementation needs to be corrected - NOT dealt with "on the fly".
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jan 06, 2012 8:22 pm
Reply with quote

JCL-error and abend are two different animals so you should not be mixing them.

Quote:
IF RUN (IF previous step went fine)
If you want to check this, checking for the RC from the respective step should do what you are asking for, no?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sat Jan 07, 2012 4:06 am
Reply with quote

Hi Anuj,

the problem here is the OP wants to be able to handle a JCL error.

As already mentioned above, there is no way to track this via an IF statement in the JCL.

A scheduling tool can handle this.

Gerry
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 09, 2012 4:14 pm
Reply with quote

Hi Gerry,

Looks like I've totally misunderstood what OP might be looking for. I'll walk slowly now.

Regards,
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top