View previous topic :: View next topic
|
Author |
Message |
ssowmya
New User
Joined: 10 Oct 2006 Posts: 40
|
|
|
|
Hi
My requirement is to include a step in JCL which will mail the return code of the previous step. Could any one please let me know if this is possible...Can the return code from previous step be mailed in the next step?
Please do help...
Thanks
Sowmya |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi,
If there are limited return codes(say 2) expected...it wasn't a bad idea to repeat the Email step twice and based on the return code, you can execute the step.
~Vamsi |
|
Back to top |
|
|
ssowmya
New User
Joined: 10 Oct 2006 Posts: 40
|
|
|
|
I need to mail all cases except when the return code is zero. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
If you want to mail the actual return code you will need to put it out to a file or something. Most emailers use instream data for the message and this can't be over ridden with parms. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Sowmya, do you know REXX? If so, you can search the forums for an exec named "GETRC" that will allow you to capture the return-code for each previous step of the job from the job's JSCB control blocks. You can then modify this exec as needed to generate the email output as needed for your site. |
|
Back to top |
|
|
ssowmya
New User
Joined: 10 Oct 2006 Posts: 40
|
|
|
|
Hi
Thank U very much...It worked!!!
Regards
Sowmya |
|
Back to top |
|
|
|