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
 
CAPTURE HIGHEST CONDITIONAL CODE IN JOB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: CAPTURE HIGHEST CONDITIONAL CODE IN JOB
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

Site Director


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

PostPosted: Thu Jan 22, 2009 12:13 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Jan 22, 2009 1:44 am    Post subject:
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    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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm

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