
FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-22
BUILDKEYRECORDS Guidelines
If
out-filename
(the destination file) contains existing data, it is never
overwritten during a BUILDKEYRECORDS operation.
key-specifier-list
names one or more alternate-key fields of the primary file whose corresponding
alternate-key records are to be generated.
key-specifier
is a 2-byte value that identifies the alternate-key field. Specify it as a one or
two-character string in quotation marks:
"[c1]c2"
Or as an integer from -32,768 through 32,767:
{ -32,768 : 32,767 }
You can use any characters for
key-specifier
except zero. If you omit
c1
,
then
c1
is treated as a zero.
out-option
specifies the format and control of
out-filename
.
out-option
is any one of:
BLOCKOUT out-block-length
DENSITYOUT density
EBCDICOUT
PAD [ pad-character ]
RECOUT out-record-length
[ NO ] REWINDOUT
SKIPOUT num-eofs
TAPEMODE mode
[ NO ] UNLOADOUT
XLATE [ xlate-table-name ]
XLATEIN [ xlate-table-name ]
XLATEOUT [ xlate-table-name ]
BUILDKEYRECORDS Guidelines
BUILDKEYRECORDS causes the primary file to be read sequentially according to
its primary-key field.
For each record read from the primary file, BUILDKEYRECORDS generates one
or more alternate-key records (corresponding to the number of key specifiers that
are named) and writes them to the out file.
If you name more than one key specifier, BUILDKEYRECORDS generates the
corresponding alternate-key file records in the order of the ASCII collating
sequence for the key specifiers.
Note.
For a complete description of these options, see
out-option on page 2-45
.