Displaying data on the system logical output device
To write data to the system logical output device, either
omit the UPON clause or use the UPON clause
with destination SYSOUT.
About this task
Display "Hello" upon sysout.
The output is directed
to the ddname that you specify in the OUTDD compiler
option. You can specify a file in the z/OS UNIX file system with this ddname.
If the OUTDD ddname
is not allocated and you are not running in the z/OS UNIX environment, a default DD of SYSOUT=* is
allocated. If the OUTDD ddname is not allocated and
you are running in the z/OS UNIX environment,
the _IGZ_SYSOUT environment variable is used as follows:
- Undefined or set to stdout
- Output is routed to stdout (file descriptor 1).
- Set to stderr
- Output is routed to stderr (file descriptor 2).
- Otherwise (set to something other than stdout or stderr)
- The
DISPLAYstatement fails; a severity-3 Language Environment® condition is raised.
When DISPLAY output is routed
to stdout or stderr, the output is not subdivided into records. The
output is written as a single stream of characters without line breaks.
If OUTDD and
the Language Environment runtime option MSGFILE specify
the same ddname, both DISPLAY output and Language Environment runtime diagnostics are routed
to the Language Environment message file.