FastSort Manual

Using SORT and SUBSORT DEFINEs
FastSort Manual429834-003
7-10
Deleting a DEFINE
INFO DEFINE =distributor_collector, DETAIL
Define Name =DISTRIBUTOR_COLLECTOR DEFINE
CLASS SORT
SWAP $DISK.FASTSORT.SWAPFILE
MODE MINSPACE
SUBSORTS (=SUBSORTB,=SUBSORTC,=SUBSORTD)
To delete an attribute from the working attribute set before you create a new DEFINE,
use the RESET DEFINE command. The following example deletes all previously
specified SUBSORT DEFINE names for the =DISTRIBUTOR_COLLECTOR DEFINE.
RESET DEFINE SUBSORTS
Deleting a DEFINE
Use the DELETE DEFINE command to delete a DEFINE. In the following example, the
first command deletes =SUBSORTB, while the second command deletes all DEFINEs
(including DEFINEs other class SORT DEFINEs). A double asterisk (**) or an equal
sign and asterisk (=*) in the DELETE DEFINE command specifies all DEFINEs.
DELETE DEFINE =SUBSORTB
DELETE DEFINE **
Using DEFINEs With Interactive FastSort
After you create a SORT DEFINE, you can use it with interactive FastSort by
specifying the DEFINE name in the FastSort RUN command. FastSort reads the
attributes from the SORT DEFINE and then uses them as parameters for the sort or
merge run. If you specify a DEFINE other than class SORT in the RUN command,
FastSort returns an error message.
The following FastSort command file includes a RUN command that uses the
=DISTRIBUTOR_COLLECTOR SORT DEFINE:
FROM infile
TO outfile
ASC 1:10
RUN, DEFINE =distributor_collector
...
The Guardian User’s Guide also provides information and examples for creating and
using TACL DEFINEs interactively.
Creating and Using DEFINEs Programmatically
You create and use a SORT or SUBSORT DEFINE (and other TACL DEFINEs as well)
programmatically using the system procedures shown in the table below. The
operating system places the DEFINEs in the process file segment (PFS) of your
application.