READ - direct formatted

READ - direct formatted

When READ is used to read data from direct formatted files, the following specifiers are associated with the statement:

<value> specifies the unit number. The keyword and equals sign are optional if it is the first item in the specifier list.

FMT=<string or label>
Specifies the format for the data to be read in. The keyword and equals sign are optional if this is the second item in the list.

<value> specifies the record number to read from.

<variable> will contain zero if the operation was successful, otherwise a positive value to indicate an error, -1 to indicate EOF or -2 to indicate EOR.

<label> specifies a label to go to in the event of an error.



Copyright © 1999-2021 Silverfrost Limited