FastSort Manual

Sorting Interactively
FastSort Manual429834-003
2-2
Entering Commands and Data in a Command File
command-file
is an EDIT file (file code 101) that contains FastSort interactive commands. A
command file can also contain the input records for a sort or merge run.
list-file
is a disk file, I/O device, SPOOL DEFINE, or a process that receives the output
from the sort or merge run. The output file also includes statistics and any error or
warning messages. If list-file already exists, SORT purges its contents and
writes the new output to it. If list-file does not exist, FastSort creates it as an
EDIT file.
run-option
is a TACL RUN command option, as described in the TACL Reference Manual.
For more information, see Automating FastSort Tasks on page 9-15 for an example on
how to use a command file to automate DEFINEs.
Entering Commands and Data in a Command File
When you create an EDIT file to use as a command file, enter only one FastSort
command on each line. The RUN command must follow all other FastSort commands
for a sort or merge run.
You can also enter input records after the RUN command, one on each line, if you do
not specify an input (FROM) file for the run. A command file that contains input records
can describe only one sort or merge run.
Entering Comments in a Command File
To include a comment in a FastSort command file, enter an exclamation point (!) at the
beginning of the comment line. FastSort recognizes all text to the right of an
exclamation point as a comment. A line end or second exclamation point ends the
comment. Each comment on a new line must begin with an exclamation point, and a
comment cannot continue from line to line.
! this is a comment
! this also is a comment !
If your command file contains input records, do not mix comments with the input
records. Instead, place input records after the RUN command in a command file. When
FastSort reads input records, it does not recognize the exclamation point as a
comment symbol. Instead, FastSort sorts an exclamation point and any comment text
as an input record.