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?
Joined: 26 Apr 2004 Posts: 4650 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.