You can specify a SYSOUT data set by using the SYSOUT parameter
on a DD statement. z/OS® XL C/C++ supports opening SYSOUT data sets in
two ways:
- Specifying a ddname that has the SYSOUT parameter. For information
about defining ddnames, see Using a DDname.
- Specifying a data set name of * on a call to fopen() or freopen() while
you are running under z/OS batch or IMS online or batch.
On a
DD statement, you specify
SYSOUT=x,
where
x is the output class. If the class matches the
JOB statement
MSGCLASS, the
output appears with the job log. You can specify a
SYSOUT data set
and get the job
MSGCLASS by specifying
SYSOUT=*.
If you want to create a job stream within your program, you can specify
INTRDR on
the
DD statement. This sends your
SYSOUT data set
to the internal reader to be read as an input job stream. For example,
//MYDD DD SYSOUT=(A,INTRDR)
For more details about the SYSOUT parameter, refer to z/OS MVS JCL User's Guide.
You can specify DCB attributes for a
SYSOUT data set on a
DD statement
or a call to
fopen() or
freopen(). If you do not,
z/OS XL C/C++ uses
the following defaults:
- Binary, Record I/O, or Blocked I/O
- RECFM=VB LRECL=137 BLKSIZE=882
- Text I/O
- RECFM=VBA LRECL=137 BLKSIZE=882