Silverfrost Logo About Us | Contact Us
 
WRITE - sequential formatted

WRITE - sequential formatted

When WRITE is used to write data to a sequential formatted file, the following specifiers are associated with the statement:

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

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

IOSTAT=<variable>
<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.

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

ADVANCE=<string>
<strings> equals 'NO' for non-advancing output, 'YES' or absent for advancing output.

 

 

Copyright © 1999-2017 Silverfrost Limited