ENFORM Reference Manual
?ASSIGN Command
Commands
058057 Tandem Computers Incorporated 6–3
create-open-spec
is one file creation or open attribute. Only exclusion spec is used by ENFORM.
create-open-spec is of the form:
extent-spec
CODE
file-code
exclusion-spec
access-spec
REC
record-size
BLOCK
block-size
extent-spec
is one of the following:
{}
EXT[(]
pri-extent-size
[)]
EXT([
pri-extent-size
]‚
sec-extent-size
)
exclusion spec
is one of the following:
EXCLUSIVE
SHARED
PROTECTED
access spec
is one of the following:
I-O
INPUT
OUTPUT
The ?ASSIGN command can be entered at any time prior to running a query. Each
time an ?ASSIGN command is entered, an entry of the assignment is made in the
internal table. The internal table holds up to 32 assignments. When the internal table
is full, the ?ASSIGN command can be entered without any parameters to clear all of
the assignments.
Each DDL dictionary RECORD statement describes records in a physical file, named
by a DDL FILE IS clause. ENFORM uses the physical file name in the DDL FILE IS
clause to locate the records and retrieve information. There might be times when the
actual records desired are not in the physical file named in the dictionary. An example
would be when test records are used in place of actual records. The ?ASSIGN
command temporarily overrides the physical file named by the DDL FILE IS clause.
In the following example, the employee record description is assigned to the physical
file $data.database.sample:
?ASSIGN employee TO $data.database.sample