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

CAPTURE HIGHEST CONDITIONAL CODE IN JOB


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

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Wed Jan 21, 2009 11:29 pm
Reply with quote

Hi,

I need to add a step to the existing job. The functionality of this additional step is to send an email in case any of the job step is completed with condition code higher than 04.

Can someone suggest how to capture the highest of the conditional codes for all the previous steps in JCL?

Thanks in advance

Regards
-Manohar
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 22, 2009 12:13 am
Reply with quote

Hello,

Which do you really want to do - capture the highest cc or send an e-mail if any step had a cc greater than 4?

If all you want to do is send a conditional e-mail, include an e-mail step that only executes when a prior step ended with cc>4. There would be no need to determine the highest cc . . . if i understand what is needed.
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Thu Jan 22, 2009 12:54 am
Reply with quote

Hi Dick,

To answer your question - I want to send the email if any steps in job had cc greater than 4.

I think your suggestion is to add a conditional step after each step in the existing job?

My job has 5 steps. And I want to add only 6th step as a conditional step to send an email. If the step2 had CC = 8, In that case the step6 should execute to send the email. Is this possible?

Thanks
Manohar
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 22, 2009 1:44 am
Reply with quote

Hello,

Quote:
I think your suggestion is to add a conditional step after each step in the existing job?
Not after each step - just one at the end as you suggested.

Quote:
In that case the step6 should execute to send the email. Is this possible?
Yes, you can check if any of the steps returned a cc of > 4 and then execute the email step.

At the top of the page is a link to "IBM Manuals". Among them is the JCL Language Reference. You'll be interested in the IF THEN constructs.
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top