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
 

 

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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


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