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
 

 

Mailing return code as part of e-mail

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Mon Aug 27, 2007 3:15 pm    Post subject: Mailing return code as part of e-mail
Reply with quote

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
View user's profile Send private message

shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 27, 2007 3:26 pm    Post subject: Reply to: Mailing return code as part of e-mail
Reply with quote

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
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Mon Aug 27, 2007 4:00 pm    Post subject: Reply to: Mailing return code as part of e-mail
Reply with quote

I need to mail all cases except when the return code is zero.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Mon Aug 27, 2007 5:29 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Aug 27, 2007 5:38 pm    Post subject: Reply to: Mailing return code as part of e-mail
Reply with quote

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
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Tue Aug 28, 2007 8:43 am    Post subject: Reply to: Mailing return code as part of e-mail
Reply with quote

Hi

Thank U very much...It worked!!!

Regards
Sowmya
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 RMM: scratching a volume that RMM thi... Hervey Martinez IBM Tools 0 Mon May 15, 2017 8:51 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 QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am


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