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 Profile Log in to check your private messages Log in
 
Send e-mail through COBOL-DB2 Store Procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
a027412

New User


Joined: 05 Jul 2007
Posts: 40
Location: Minneapolis, MN

PostPosted: Sat Oct 17, 2009 12:08 am    Post subject: Send e-mail through COBOL-DB2 Store Procedure
Reply with quote

Sending e-mail through COBOL DB2 store procedure will work? Can i have some sample or documentation? Please help!
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Sat Oct 17, 2009 12:32 am    Post subject:
Reply with quote

Requirements to send an email:
1. Your site must be running an SMTP started task.
2. You must add a DD statement of SYSOUT=(?,????????) where the ? is the output class for SMTP (often B but it is site dependent) and the ???????? is the SMTP started task name.
3. You must create a properly formatted email (see RFC 2821 and 2822 for details).
4. Your COBOL program must write each line of the properly formatted email to the DD name and SMTP handles the rest, once the end of message is found (a single period on a line by itself).

There have also been many, many discussions on this forum about sending emails and the various issues -- do a search.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm

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