WRITESEQ


Write to a file opened for sequential access.

 

COMMAND SYNTAX

WRITESEQ Expression {APPEND} ON|TO FileVar THEN | ELSE statements

or

WRITESEQF Expression {APPEND} ON|TO FileVar THEN | ELSE statements

 

SYNTAX ELEMENTS

Variable specifies the variable to contain next record from sequential file.
FileVar specifies the file descriptor of the file opened for sequential access.
Statements conditional jBC statements

 

NOTES

Each WRITESEQ writes the data on a line of the sequentially opened file. Each data is suffixed with a new line character. After each WRITESEQ the file pointer moves forward to the end of line. The WRITESEQF statement forces each data line to be flushed to the file when it is written. The APPEND option forces each WRITESEQ to advance to the end of the file before writing the next data line.

 

 


jBC