Enform Plus Reference Manual

Running Enform Plus
Enform Plus Reference Manual422684-001
2-5
Passing Parameters to Compiled Query Files
Enform Plus is used in interactive mode, the Enform Plus ?ASSIGN command overrides
any TACL ASSIGN commands.
The syntax of the TACL ASSIGN command is as follows:
record-name
is the name of a dictionary record description.
generic-file-name
is the name of one of the following generic files: QUERY-WORK-AREA, QUERY-
SORT-AREA, QUERY-QPSTATISTICS, and QUERY-QPSTATUS-MESSAGES.
All other names are ignored.
physical-filename
is a fully qualified Guardian file name. See the Guardian User's Guide for the exact
form of a Guardian file name.
exclusion-mode
is either SHARED, PROTECTED, or EXCLUSIVE. The default is SHARED for an
input file. Valid values for generic files are described later in this section.
See the TACL Reference Manual for more information about the ASSIGN command.
Passing Parameters to Compiled Query Files
Enform Plus allows you to pass parameters to a compiled query file. The compiled
query file must contain a PARAM statement defining the parameter. The PARAM
statement is described on page 4-39
.
Use the TACL PARAM command to specify parameters prior to execution of the
compiled query file. The PARAM command overrides any values specified in a SET
statement for a parameter. The syntax of the TACL PARAM command is:
parameter-name
is the name of a parameter defined in a PARAM statement.
[ { record-name } , physical-file-name ]
ASSIGN [ { generic-file-name } ]
[ ]
[ [ , exclusion-mode ] ]
PARAM [ parameter-name parameter-value ] , ...