If you know how often the email is to be sent (1/2/3/4 times a day)
and the Bounce (IPL) schedule, you can repeat the DDNAME and each
message will use 1 DDNAME iteration.

On Fri, May 15, 2020 at 8:08 PM Charles Mills <charl...@mcn.org> wrote:
>
> I am designing a long-running Rexx program that will from time to time
> generate an e-mail via the SMTP server. The idea is to allocate a DD
> SYSOUT=(B,SMTP) and write the SMTP commands to it. I've never done that
> before so I have some questions:
>
> - Am I correct in my assumption that I will have to "spin" the dataset
> before the SMTP server will pick it up?
> - Assuming Yes to the first question, am I correct (a.) that
> FREE=CLOSE,SPIN=UNALLOC on the DD will get the records over to SMTP on
> EXECIO (FINIS; but that (b.) at that point the DD "no longer exists" -- that
> I will get an error if I try to open it again? (Recall the program is
> "long-running" and needs to generate multiple e-mails "from time to time."
> They need to go out more or less as created, not in a big batch later on.)
> - Not a huge deal if so, I guess. I can use BPXWDYN to allocate my DD again
> and again rather than JCL. Anyone have any better ideas?
>
> Thanks. Outside-the-above-box suggestions cheerfully considered. I'm pretty
> much set on Rexx, e-mails, and "long-running with multiple e-mails from time
> to time" but will consider other possibilities.
>
> Charles
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to