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 [email protected] with the message: INFO IBM-MAIN

Reply via email to