Home > Archive > Cobol > December 2007 > Send email from MVS cobol
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Send email from MVS cobol
|
|
| Bill Gentry 2007-11-30, 6:55 pm |
| Hi All,
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.
Anyone ever try this?
Thanks
BG
| |
|
| In article <7c04ecdf-2eff-4a68-8d83-9eb9ab08a2d3@d61g2000hsa.googlegroups.com>,
Bill Gentry <billgentry2@hotmail.com> wrote:
>Hi All,
>
>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.
Let me see if I have this straight... you have a dataset containing email
addresses and you want to select a sub-set of these addresses to which an
email will be sent?
It seems like there needs to be something along with the email addresses
to differentiate them into lists or groups before you can do this. How
are the email addresses to be chosen for mailings?
DD
| |
| Bill Gentry 2007-11-30, 6:55 pm |
| On Nov 30, 10:05 am, docdw...@panix.com () wrote:
> In article <7c04ecdf-2eff-4a68-8d83-9eb9ab08a...@d61g2000hsa.googlegroups.com>,
> Bill Gentry <billgent...@hotmail.com> wrote:
>
>
>
> Let me see if I have this straight... you have a dataset containing email
> addresses and you want to select a sub-set of these addresses to which an
> email will be sent?
>
> It seems like there needs to be something along with the email addresses
> to differentiate them into lists or groups before you can do this. How
> are the email addresses to be chosen for mailings?
>
> DD
Not necessarily. How I determine who needs to be emailed isn't
entirely relevant. What i need is a subroutine or operating system
call that'll actually send the email.
| |
|
| In article <c9435867-fb0c-4e49-8658-f0c77fc67167@d4g2000prg.googlegroups.com>,
Bill Gentry <billgentry2@hotmail.com> wrote:
>On Nov 30, 10:05 am, docdw...@panix.com () wrote:
><7c04ecdf-2eff-4a68-8d83-9eb9ab08a...@d61g2000hsa.googlegroups.com>,
>
>Not necessarily. How I determine who needs to be emailed isn't
>entirely relevant. What i need is a subroutine or operating system
>call that'll actually send the email.
I'm still . Using JCL to send mail, in my experience, employs a
dataset that contains email instructions, like the from:, to: and subject:
lines. Your program determines that (address) needs to get an email... so
(address) gets written to a dataset and then the JCL gets kicked off.
What am I missing?
DD
| |
|
| On 11/30/07 09:56 am, Bill Gentry wrote:
> Hi All,
>
> 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.
>
> Anyone ever try this?
Bill,
While I've never tried it, since you said you know how to do it with
JCL, a very simplified approach would be to include a DD-statement for
the JES2 Internal Reader and send the JCL there. Probably not very
efficient, but it should work until you find a better way. [If you're
using JES3, I assume JES3 has a similar function, but it's been too long
since I've looked at it.]
Not pretty, but the function is there.
Carl
| |
| Howard Brazee 2007-11-30, 6:55 pm |
| On Fri, 30 Nov 2007 06:56:09 -0800 (PST), Bill Gentry
<billgentry2@hotmail.com> 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?
| |
| Howard Brazee 2007-11-30, 6:55 pm |
| There are some replies you can see in the newsgroup copy of the IBM
listserve.
bit.listserv.ibm-main
| |
| sro0220@gmail.com 2007-12-02, 6:55 pm |
| On Nov 30, 12:13 pm, Howard Brazee <how...@brazee.net> wrote:
> There are some replies you can see in the newsgroup copy of the IBM
> listserve.
>
> bit.listserv.ibm-main
I believe the man just wants to send email from a cobol program on a
ibm mainframe.
isn't there a call from cobol on an ibm machine to do this?
there is on a unisys clearpath.
| |
| William M. Klein 2007-12-02, 6:55 pm |
| There isn't any "IBM-supplied - built-in" call to do this (on MVS). There are a
NUMBER of "3rd party products" that will do this (via a call from COBOL) but the
"traditional" way is to direct the output to the interregnal reader for SMTP
handling.
--
Bill Klein
wmklein <at> ix.netcom.com
<sro0220@gmail.com> wrote in message
news:0b3f684c-d138-481e-9d9b-fd15a3c62b35@l1g2000hsa.googlegroups.com...
> On Nov 30, 12:13 pm, Howard Brazee <how...@brazee.net> wrote:
>
> I believe the man just wants to send email from a cobol program on a
> ibm mainframe.
> isn't there a call from cobol on an ibm machine to do this?
> there is on a unisys clearpath.
| |
| sro0220@gmail.com 2007-12-03, 9:55 pm |
| On Dec 2, 6:43 pm, "William M. Klein" <wmkl...@nospam.netcom.com>
wrote:
> There isn't any "IBM-supplied - built-in" call to do this (on MVS). There are a
> NUMBER of "3rd party products" that will do this (via a call from COBOL) but the
> "traditional" way is to direct the output to the interregnal reader for SMTP
> handling.
>
> --
> Bill Klein
> wmklein <at> ix.netcom.com<sro0...@gmail.com> wrote in message
>
> news:0b3f684c-d138-481e-9d9b-fd15a3c62b35@l1g2000hsa.googlegroups.com...
>
>
>
>
>
>
> - Show quoted text -
another shortcoming of an ibm mainframe - or do they call that a
'feature'?
|
|
|
|
|