Enform Plus Reference Manual

Statements
Enform Plus Reference Manual422684-001
4-7
CLOSE Statement
CLOSE Statement
The CLOSE statement allows you to delete a user variable, user aggregate, user table, a
parameter, or a record description from the internal table. The syntax of the CLOSE
statement is:
record-name
is the name of a dictionary record description previously accessed by an OPEN
statement.
user-variable-name
is the name of a user variable previously defined by a DECLARE statement.
user-aggregate-name
is the name of a user aggregate previously defined by a DECLARE statement.
user-table-name
is the name of a user table previously defined by a DECLARE statement.
param-name
name of a parameter previously defined by a PARAM statement.
The Effect of a CLOSE Statement on the Internal Table
As a session progresses, Enform Plus maintains an internal table for opened record
descriptions, links of record descriptions, and definitions of user variables, user
aggregates, user tables, and parameters. This internal table grows with each new OPEN,
LINK, DECLARE, or PARAM statement entered.
Enform Plus has no way of knowing when a table entry is no longer required for a
subsequent query within the current session. For this reason, Enform Plus allows you to
clear unwanted table entries from the internal table with a CLOSE statement. The
CLOSE statement does not reclaim space from the internal table, but it does eliminate
the effect that unwanted entries might have on subsequent queries. Furthermore, regular
use of CLOSE statements reduces the need to qualify fields that are present in more than
one record description.
Closing a dictionary record description also clears all links for that particular record
description.
{ record-name }
{ user-variable-name }
CLOSE { user-aggregate-name } , ... [ ; ]
{ user-table-name }
{ param-name }