On Mon, 16 Mar 2009 15:08:48 -0500, Tom Marchant 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.
>
>The fact that the output is to be handled in some way by JES (SYSOUT=)
>should not be confused with sending the output to DDName SYSOUT. DISPLAY
>always goes to DDName SYSOUT, which can be a data set or a spooled data set
>(SYSOUT=x).
>
>The OP has a need for the output to go to a DD that will not contain other
>information. It is not uncommon for a program to have multiple distinct
>output data sets, some of which might be handled by the Job Entry Subsystem.
>
The need to send multiple reports to "multiple distinct output data
sets, some of which might be handled by the Job Entry Subsystem."
sounds like a strong argument to use "OPEN, WRITE, etc" in preferende
to "more normal" ways.
("DDName SYSOUT"? Not SYSPRINT? Not SYSTERM? COBOL seems
to want to be the misfit. Will it accept an alternate DDNAME
list as a second PARM?)
-- gil
----------------------------------------------------------------------
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