Open Statement; Using Open As A Copy Of - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

OPEN Statement

Using OPEN AS COPY OF
The OPEN statement accesses the dictionary record description. The syntax of the
OPEN statement is:
record-name
{
OPEN
record-name2 [ AS ] COPY [ OF ] record-name1
record-name or record-name1
are the names of dictionary record descriptions.
record-name2
is a name that you supply for the copy of record-name1. record-name2 can be the
name of a dictionary record description.
Specifying an OPEN statement does not actually open a physical file; rather, the OPEN
statement causes ENFORM to access the dictionary record description of the file. One
OPEN statement can open several record descriptions. ENFORM stores the record
description in the internal table. The record description remains open until:
A CLOSE statement clears the record description.
Either a DICTIONARY statement or ?DICTIONARY command clears the entire
internal table.
The current ENFORM session ends.
The OPEN AS COPY OF statement is useful when a record description is designed so
that records within a file relate to other records within the same file. Because LINK
statements only associate record descriptions with different record names, the OPEN
AS COPY OF statement refers to the same record description by a different record
name.
Note that although the OPEN AS COPY OF statement opens record-name2, you must
open record-name1 before specifying this statement. Note also that record-name1 cannot
be specified as record-name2 in another OPEN AS COPY OF statement.
If you want to assign record-name2 to a file other than the file specified in the dictionary
for record-name1, you must use an ENFORM ?ASSIGN command or the Command
Interpreter ASSIGN command to assign record-name2. An assignment of record-name1
does not apply to record-name2.
058057 Tandem Computers Incorporated
Statements
OPEN Statement
}
,...[ ; ]
4–39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents