11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WRITESEQ<br />

Syntax<br />

WRITESEQ expr [APPEND] {ON | TO} seq.file.var [ON ERROR statements]<br />

{THEN statements [END] | ELSE statements [END]}<br />

Description<br />

The <strong>UniBasic</strong> WRITESEQ command writes an expression as a record on a<br />

sequential file at the current record pointer position.<br />

Note: Before you use WRITESEQ, you must open the file by using the OSOPEN or<br />

OPENSEQ command.<br />

Tip: Use the READSEQ command to position the record pointer before using<br />

WRITESEQ.<br />

If the file is a named pipe, you cannot use WRITESEQ to write to it. You must use the<br />

OSBWRITE command.<br />

WRITESEQ cannot immediately write a record to disk. UniData stores records in a<br />

buffer until the buffer is full.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

expr Specifies an expression to write as a record.<br />

APPEND Use the APPEND option to start the WRITESEQ process at<br />

the end-of-file mark. When APPEND is included, and no file<br />

exists, UniData creates a new file.<br />

ON | TO seq.file.var Specifies a sequential file to receive the expression.<br />

WRITESEQ Parameters<br />

WRITESEQ 1-908

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!