Rational Developer for System z
Enterprise PL/I for z/OS, Version 4.2, Language Reference

RECORD and STREAM attributes

The RECORD and STREAM usage attributes specify the kind of data transmission used for the file.

Read syntax diagramSkip visual syntax diagram   .-STREAM-----.
>>-+-+--------+-+----------------------------------------------><
     '-RECORD-'
 

Default: STREAM

RECORD indicates that the file consists of a collection of physically separate records, each of which consists of one or more data items in any form. Each record is transmitted as an entity to or from a variable.

STREAM indicates that the data of the file is a continuous stream of data items, in character form, assigned from the stream to variables, or from expressions into the stream.

A file with the STREAM attribute can be specified only in the FILE option of the OPEN, CLOSE, GET, and PUT input/output statements.

A file with the RECORD attribute can be specified only in the FILE option of the OPEN, CLOSE, READ, WRITE, REWRITE, LOCATE, and DELETE input/output statements.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)