File Utility Programming (FUP) Reference Manual

FUP Commands
File Utility Program (FUP) Reference Manual523323-015
2-143
LOAD Examples
LOAD command can accept in-filename and destination-filename as a
key-sequence files with increased limits or an enhanced key-sequenced file or a
legacy key sequenced file.
If the destination-filename is a legacy key-sequenced file and in-
filename is a legacy key-sequenced file, then the data contained in the
source file starting from primary partition will be loaded into the destination file
starting from the primary partition.
If the destination-filename is an enhanced key-sequenced file and in-
filename is a legacy key-sequenced file, then the data contained in the
source file starting from primary partition will be loaded into the destination file
starting from the first secondary partition.
If the destination-filename is a legacy key-sequenced file and in-
filename is an enhanced key-sequenced file, then the data contained in the
source file starting from first secondary partition will be loaded into the
destination file starting from the primary partition.
If the destination-filename is an enhanced key-sequenced file and in-
filename is enhanced key-sequenced file, then the data contained in the
source file starting from the first secondary partition will be loaded into the
destination file starting from the first secondary partition.
If the destination-filename is the primary partition of a key-sequenced file
with increased limits (EKS file with increased limits) and PARTOF option is used,
LOAD command fails and displays the error ERR2.
LOAD Examples
To load data from a relative file (RELFILE) to DFILE, causing zero-length records
and data records to be transferred:
-LOAD RELFILE, DFILE, NO COMPACT
This example loads data from the tape device ($TAPE) into the key-sequenced
disk file (KSFILE). Any records to be loaded from $TAPE are already sorted in the
order of the key fields of KSFILE. The minimum percentage of slack space to
remain in data blocks is 10 percent:
-LOAD $TAPE, KSFILE, SORTED, DSLACK 10
To load records from a file (OLDMAST), translate them using a translation table
(MY_ENCRYPT), and write them to another file (SAVEMAST):
-LOAD oldmast,savemast, XLATE my_encrypt