>On Fri, 30 Nov 2007 06:56:09 -0800 (PST), Bill Gentry ><[EMAIL PROTECTED]> 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. >
Bill, you do have the SMTP server task running on your mainframe? This would be the first thing-to-do, if your shop is brand-new to sending email from the mainframe. Next, check out the SMTPNOTE REXX-Exec from IBM (it should be in one of the TCPIP - installation libraries, IIRC) ... this allows simple text messages to be emailed to one or more users. Take this process together with the CS IP User manuals and read up on SMTP mail and the format of the output file that you need to write, so that the SMTP task can "understand" it. Alternatively, for simple email messages and also if you need to create more complicated email, e.g., email with an attached file containing a printable report in TXT or PDF format, check out Lionel Dyck's XMITIP process. I can highly recommend it, having used it myself for several years. Oh, did I mention it that it's free? Google for XMITIP... Another alternative to re-inventing the wheel for sending emails from COBOL programs would be available to shops that have the SAS software package installed. SAS has a really good email interface to send anything from simple text messages to generated file attachments in a number of formats. Whichever way you decide to go, please note: The SMTP mainframe server task performs best, if the SPOOL files presented to it contain no more than one email message per SPOOL file. HTH Regards, Ulrich Krueger ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

