Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8596
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: 10360
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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us