Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 213
Chapter 2 Program Instructions
PUT
Field of Application
Statement for writing a given record from the random buffer to
a given random le.
Syntax PUT[#]<nexp
1
>,<nexp
2
>
# indicates that whatever follows is a number. Optional.
<nexp
1
> is the number assigned to the le when it was OPENed.
<nexp
2
> is the number of the record. Must be 1.
Remarks
Use LSET or RSET statements to place data in the random buffer before
issuing the PUT statement.
Example
10 OPEN "PHONELIST" AS #8 LEN=26
20 FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$
30 SNAME$="SMITH"
40 CNAME$="JOHN"
50 PHONE$="12345630"
60 LSET F1$=SNAME$
70 LSET F2$=CNAME$
80 RSET F3$=PHONE$
90 PUT #8,1
100 CLOSE#8
RUN
SAVE "PROGRAM 1.PRG "
NEW
10 OPEN "PHONELIST" AS #8 LEN=26
20 FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$
30 GET #8,1
40 PRINT F1$,F2$,F3$
RUN
yields:
SMITH
↔↔↔
JOHN
↔↔↔↔↔↔
12345630