FastSort Manual

Using SORT and SUBSORT DEFINEs
FastSort Manual429834-003
7-7
Creating and Using DEFINEs Interactively
Creating and Using DEFINEs Interactively
Use the TACL DEFINE commands listed below to interactively create and modify
SORT and SUBSORT DEFINEs. The operating system places the DEFINEs in the
process file segment (PFS) of your TACL process.
For additional information, including the syntax, for these commands, see the
TACL Reference Manual.
Enabling DEFINEs
You must set the TACL DEFMODE variable to ON before you can use a DEFINE. If the
DEFMODE variable is OFF, DEFINEs do not affect FastSort or any other processes.
To determine the current value of the DEFMODE variable, use the SHOW DEFMODE
command. To enable DEFINEs, use the SET DEFMODE ON command.
Creating a SORT DEFINE
The following example creates a SORT DEFINE named
=DISTRIBUTOR_COLLECTOR and three SUBSORT DEFINEs named =SUBSORTA,
=SUBSORTB, and =SUBSORTC. The SET DEFINE CLASS SORT establishes the
initial working attribute set and their default values. TACL automatically assigns these
default values to the working attribute set in the next SORT DEFINE you create. You
can issue additional SET DEFINE commands to set other attributes in the working
attribute set. Then use ADD DEFINE to create and name the
=DISTRIBUTOR_COLLECTOR based on the working attribute set, as follows:
SET DEFINE CLASS SORT
SET DEFINE SWAP $disk.fastsort.swapfile
SET DEFINE MODE MINSPACE
SET DEFINE SUBSORTS (=subsorta,=subsortb,=subsortc)
ADD DEFINE =distributor_collector
Command Description
ADD DEFINE Creates a DEFINE in the PFS of the current TACL process.
ALTER DEFINE Changes the attribute settings of an existing DEFINE in the PFS.
DELETE DEFINE Deletes one or more existing DEFINEs from the PFS.
INFO DEFINE Displays the attributes and their settings for one or more existing
DEFINEs.
RESET DEFINE Resets the attributes of one or more existing DEFINE to their initial
values.
SET DEFINE Sets the values of one or more existing DEFINE attributes in the
working set.
SHOW DEFINE Displays a value of a specific DEFINE attribute, the values of all
attributes, or the values of all attributes in the working set.