Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To check JCL error using IF else operators.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To check JCL error using IF else operators.
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 05, 2012 2:29 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Jan 05, 2012 2:29 pm    Post subject: Reply to: To check JCL error using IF else operators.
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: 1703
Location: Australia

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

Hi,

NOOOOOOOOOOOOOOOOOOOOOOOOOO


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

Site Director


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

PostPosted: Thu Jan 05, 2012 9:15 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jan 06, 2012 8:22 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Sat Jan 07, 2012 4:06 am    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 09, 2012 4:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us