Re: Send email from MVS cobol



Another option is, from inside your program, you write the "email output" to
a dd with SMTP as the form..

Such as:

//OUTPUTDD DD SYSOUT=(B,SMTP)

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@xxxxxxxxxxx] On Behalf
Of Howard Brazee
Sent: Friday, November 30, 2007 11:38 AM
To: IBM-MAIN@xxxxxxxxxxx
Subject: Re: Send email from MVS cobol

On Fri, 30 Nov 2007 06:56:09 -0800 (PST), Bill Gentry
<billgentry2@xxxxxxxxxxx> wrote:

Have an interesting challenge. I have a requirement that dictates
that email be sent from an MVS (z/OS) cobol program. In
oversimplified terms, this means that I'd read a file that would
contain email addresses and based on various criteria send email to any
number of those addresses. I know how to send email from JCL, but
require more precision than JCL can give me.

I'm guessing your problem is how to run an unknown number of JCL or
procs from the output of your CoBOL extract program. Is this
correct?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO Search the
archives at http://bama.ua.edu/archives/ibm-main.html


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007
8:32 PM



<http://e-mail-servers.com/4b969d0e3780f50d6f90c9a4bc03a37aworker.jpg>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.



Relevant Pages

  • Re: DCB parameter in COBOL and JCL
    ... It is not mandatory to code DCB parameters in JCL while creating new QSAM ... If the values are coded in JCL and they conflict with COBOL ... Again surprisingly it was limited only to few of the empty datasets. ...
    (bit.listserv.ibm-main)
  • Re: advice on books to learn cobol
    ... I think the best books on JCL are by Gary Deward Brown. ... So how long do you think you have to learn COBOL, DB2, QMF, and JCL? ... I am also working on Thane's book and IBM DB2 guides. ... I have been studying java and DB2 ...
    (comp.lang.cobol)
  • DCB parameter in COBOL and JCL
    ... It is not mandatory to code DCB parameters in JCL while creating new QSAM ... If the values are coded in JCL and they conflict with COBOL ... Again surprisingly it was limited only to few of the empty datasets. ...
    (bit.listserv.ibm-main)