ENFORM User's Guide
Establishing the Query Environment
Developing an ENFORM Query
3–4 058058 Tandem Computers Incorporated
The following OPEN AS COPY OF statement logically makes a duplicate copy of
employ and names it empdup. Notice that the OPEN statement for the record
description being duplicated must precede the OPEN AS COPY OF statement.
OPEN employ;
OPEN empdup AS COPY OF employ;
LINK employ.mgr-id TO empdup.empl-no;
Specification of the OPEN AS COPY OF and LINK statements allows the names of all
employees and their managers to be listed.
Assigning Record
Descriptions to Different
Physical Files
Use the ?ASSIGN command when the record occurrences you want to retrieve are not
stored in the physical file specified in the DDL FILE IS clause. (Refer to the discussion
of the Data Definition Language (DDL) in Section 2 for more information about the
FILE IS clause.) When you specify the ?ASSIGN command, the query compiler stores
the new physical file name in the internal table and passes this information to the
query processor when you issue either a LIST or FIND statement. Remember, an
OPEN statement for the record description must also be issued.
Figure 3-3 shows the effect of an ?ASSIGN command.