IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Send e-mail through COBOL-DB2 Store Procedure


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sat Oct 17, 2009 12:32 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top