View previous topic :: View next topic
|
Author |
Message |
manoopatil
New User
Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
manoopatil
New User
Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|