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.

WRITESEQF<br />

Syntax<br />

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

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

Description<br />

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

sequential file from a current record pointer position and forces UniData to immediately<br />

write the data to the disk.<br />

Note: Before you use WRITESEQF, 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 />

WRITESEQF.<br />

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

the OSBWRITE command.<br />

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

WRITESEQF.<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 WRITESEQF process at<br />

the end-of-file mark. If you use the APPEND option in a file<br />

that does not contain data, UniData creates a new file.<br />

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

WRITESEQF Parameters<br />

WRITESEQF 1-910

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

Saved successfully!

Ooh no, something went wrong!