Programming instructions
86
Intermec Fingerprint 6.13 – Programmer's Guide
Continued!
8. OUTPUT FROM FINGERPRINT, cont'd.
3. Output and Append to
Sequential Files
The following instructions are used in connection with output to
sequential files:
OPEN Creates and/or opens a file for sequential
OUTPUT or APPEND and optionally
specifies the record length in bytes.
PRINT# Prints data entered as numeric or string
expressions to the specified file.
PRINTONE# Prints data entered as ASCII values to the
specified file.
CLOSE Closes an OPENed file.
LOC Returns the number of 128-byte blocks,
that have been written since the file was
OPENed.
LOF Returns the length in bytes of the speci-
fied file.
To print data to a sequential file, proceed as follows:
OPEN
Before any data can be written to a sequential file, it must be opened.
Use the OPEN statement to specify the name of the file and the
mode of access (OUTPUT or APPEND).
• OUTPUT means that existing data will be replaced.
• APPEND means that new data will be appended to existing data.
In the OPEN statement you must also assign a number to the
OPENed file, which is used when the file is referred to in other
instructions. The number mark (#) is optional. Optionally, the
length of the record can also be changed (default 128 bytes). Up to
10 files and devices can be open at the same time.
Examples:
The file "ADDRESSES" is opened for output and given the refer-
ence number 1:
OPEN "ADDRESSES FOR OUTPUT AS #1
The file "PRICELIST" is opened for append and is given the
reference number 5:
OPEN "PRICELIST" FOR APPEND AS #2