Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 185
Chapter 2 Program Instructions
OPEN
Field of Application
Statement for opening a fi le or device–or creating a new fi le–for
input, output, or append, allocating a buffer, and specifying the
mode of access.
Syntax OPEN<sexp>[FOR
↔
<INPUT|OUTPUT|APPEND>
↔
]AS [#]<nexp
1
>[LEN=<nexp
2
>]
<sexp> is the fi le or device to be opened, of the fi le to becreated. File
names must not contain any colon character (:).
# indicates that whatever follows is a number. Optional.
<nexp
1
> is a designation number for the OPENed fi le or device.
<nexp
2
> is, optionally, the length of the record in bytes (default
128 bytes).
Remarks
An OPEN statement must be executed before a fi le or device can be used
for input, output, and/or append. A maximum of 25 fi les and/or devices
can be open at the same time.
Sequential Access Mode:
The access mode can optionally be specified as sequential INPUT,
OUTPUT, or APPEND:
INPUT Sequential input from the fi le/device, replacing existing
data. Existing fi les/devices only.
OUTPUT Sequential output to the fi le/device, replacing existing
data.
APPEND Sequential output to the fi le/device, where new data will
be appended without replacing existing data.
Random Access Mode:
If no access mode is specifi ed in the statement, the fi le/device is opened
for both input and output (RANDOM access mode). FIELD, LSET,
RSET, PUT, and GET can only be used on records in fi les OPENed in
the RANDOM access mode.
Please refer to the DEVICES statement for information on which devices
can be opened for the different modes of access.
Lists of the fi les stored in the various parts of your printer’s memory can be
obtained by the use of the FILES statements.
Electronic Keys:
Each key circuit may contain a number of “key items.” There are two
types of key items:
• Lock (device "lock:")
• Storage (device "storage:")
Each key item has a fi le name consisting of max. 4 characters, usually
appended by a password. The password consists of a delimiter character
(?) indicating the password followed by the actual password (max. 4
characters). Failure to include the correct password (if such is required) in
the fi le name will result in an error.