Paul Gilmartin wrote:
On Mon, 16 Mar 2009 14:03:59 -0500, 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.

I don't speak COBOL; bear with me.  What's the syntax, in
the DISPLAY statement, to select which DD SYSOUT in the JCL
is used?

-- gil

DISPLAY ...  UPON {SYSOUT|CONSOLE}

There's a compile time option that can change the DDname
used for UPON SYSOUT, but it is not changeable at run time.



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