Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Creating a data set with stream I/O

To create a data set, use one of the following:

Refer to Using the TITLE option of the OPEN statement for more information on the TITLE option.

Essential information

When your application creates a STREAM file, it must supply a line size value for that file from one of the following sources:

The PL/I default is used when you do not supply any value. If you choose the LINESIZE option, it overrides all other sources. The RECSIZE option of the ENVIRONMENT attribute overrides the other RECSIZE options. RECSIZE specified in the TITLE option of the OPEN statement has precedence over the RECSIZE option of the DD:ddname environment variable.

If LINESIZE is not supplied, but a RECSIZE value is, PL/I derives line size value from RECSIZE as follows:

PL/I determines a default line size value based on attributes of the file and the type of associated data set. In cases where PL/I cannot supply an appropriate default line size, the UNDEFINEDFILE condition is raised.

A default line size value is supplied for an OUTPUT file when:

PL/I always derives the record length of the data set from the line size value. A record length value is derived from the line size value as follows:

Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide