Bill Klein wrote:
I may be missing something, but if you know at compile-time (when you can
set an environment variable) that you want the "output" to go to SYSOUT, why
are you using "files" (with OPEN, WRITE, etc) and not just doing a DISPLAY
statement?  Either that or call CEEMSG.

I think those are "more normal" ways in COBOL to send output to SYSOUT.

"David Speake" <[email protected]> wrote in message
news:<listserv%[email protected]>...
I have used dynamic allocation via the environmental variables in COBOL.
Thanks to Steve Comstock and others for getting me started.
But I see nothing about SYSOUT and it says a DSN is required.
My need is for a //X DD SYSOUT=(B,SMTP)

Bill,

He's not really sending things to a true SYSOUT file, but to an
email server. However, you could do such a thing by hardcoding
the DD name and opening the file, writing, then closing, and
then re-opening; each file should be sent separately.

Just leave a single DD statement, //MAILOUT  DD  SYSOUT=(B,SMTP)
if you like. No need for dynamic allocation at all.


Don't have time to test right now. I will if I get a chance later.



Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

  z/OS Application development made easier
    * Our classes include
       + How things work
       + Programming examples with realistic applications
       + Starter / skeleton code
       + Complete working programs
       + Useful utilities and subroutines
       + Tips and techniques

==> Check out the Trainer's Friend Store to purchase z/OS  <==
==> application developer toolkits. Sample code in four    <==
==> programming languages, JCL to Assemble or compile,     <==
==> bind and test.                                         <==
==>   http://www.trainersfriend.com/TTFStore/index.html    <==

----------------------------------------------------------------------
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

Reply via email to