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: 10231
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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am


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