Enform Plus Reference Manual

Running Enform Plus
Enform Plus Reference Manual422684-001
2-10
Example of Server Query Processor Creation
Example of Server Query Processor Creation
Issue the following instructions to create a server query processor named $qp1 that
does the following:
Keeps open parts, order, and odetail
Accepts up to 15 requestors
Sets a limit of 2 on the cost strategy
Waits up to three minutes before stopping
27> ASSIGN F1, $data.database.parts
28> ASSIGN F2, $data.database.order
29> ASSIGN F3, $data.database.odetail
30> PARAM REQUESTORS 15, COST 2, TIMEOUT 3
31> QP / NOWAIT, NAME $qp1 /
The server query processor keeps open those files that have been assigned OFO names.
In the example, these are F1, F2, and F3. The query itself still refers to these files by
their names as described in the data dictionary: parts, order, and odetail.
(Note that FIND files cannot be kept open in this manner.)
Generic Files
A generic file is a file that is used to store some form of Enform Plus output. Enform
Plus produces many different forms of output, such as statistics and error messages. To
enable control over each class of output, generic file names have been defined for each
class. These generic file names can be used in TACL ASSIGN commands or Enform
Plus ?ASSIGN commands (described on page 6-3
) as the record-name to be assigned to
a physical-file-name.
When you assign an Enform Plus generic file to a physical file, the physical file must
exist at the time Enform Plus attempts to open the file. If you specify an exclusion mode,
it is used. An unspecified or meaningless exclusion mode (for example, protected for
terminals) causes the default (SHARED for terminals and EXCLUSIVE for other
devices) to be used. If you specify an exclusion mode for the generic files QUERY-
WORK-AREA and QUERY-SORT-AREA, it is ignored.
Assigning a generic output file name to a process name causes the process to be treated
as if it were the spooler. Enform opens the process, calls SETMODE, and writes to the
process. It is not possible to assign a FIND file to a process because Enform Plus will
create an unstructured file and rename the file as the last step in processing the FIND
statement. Table 2-1
on page 2-11 lists the Enform Plus generic file names and their
uses.