
LINK Statement
Statements
4–26
058057 Tandem Computers Incorporated
Duration of Link
Established by LINK or
LINK OPTIONAL Statement
When you use either the LINK statement or the LINK OPTIONAL statement, you
establish a link that exists for the duration of the ENFORM session. You can clear such
a link by entering one of the following:
a CLOSE statement for one of the record descriptions.
a DELINK statement for the link.
a DICTIONARY statement or a ?DICTIONARY command that clears the entire
internal table. When you clear the internal table, you also clear all links.
ENFORM allows you to specify up to 32 LINK or LINK OPTIONAL statements. If
you include the LINK OPTIONAL statement in your query specifications, be sure to
follow the rules described later in this section under “LINK OPTIONAL Statement
Considerations.”
LINK Statement
Considerations
When you use a single LINK statement, ENFORM builds a set of logical records by
searching through the data files associated with the linked record descriptions. A
record from one data file becomes part of the set of logical records only if the content
of its linking field matches the content of the linking field in a record in the other data
file.
When you use a LINK statement, you indicate that the values of the linking fields
must be equal. (If you want to indicate inequality for the values of the linking fields,
you must use a WHERE clause.) A single LINK statement is equivalent to the
following form of the WHERE clause:
WHERE qualified-field-name1 EQ qualified-field-name2,
When you use a LINK statement, the order in which you enter the record description
names is unimportant. For example:
LINK employee.empnum TO branch.manager;
is the same as:
LINK branch.manager TO employee.empnum;
Содержание ENFORM 058057
Страница 5: ...New and Changed Information iv 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Страница 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Страница 21: ...Notation Conventions xviii 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 25: ...ENFORM Terminology Introduction 1 4 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 121: ...TITLE Statement Statements 4 50 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 227: ...ENFORM Procedures ENFORM Syntax Summary A 16 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...