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: 8679
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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 Submit JCL to INTRDR and check the st... srajendran2 COBOL Programming 3 Sat Jun 16, 2018 1:30 am
No new posts BAMAD file IO Error m1985nehal CICS 1 Fri May 25, 2018 11:51 am
No new posts DB2 Sql Error code -204 rohit_naidu DB2 5 Fri May 18, 2018 4:40 pm
No new posts Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm
No new posts Getting an error from EZASOKET while ... vaibhav gs COBOL Programming 5 Thu May 17, 2018 9:21 pm

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