File Utility Programming (FUP) Reference Manual

FUP Commands
File Utility Program (FUP) Reference Manual523323-015
2-56
COPY: Copy Form Examples
COPY command can include in-filename and destination-filename as
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 copied 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 copied 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 copied 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 copied into the
destination file starting from the first secondary partition.
Data contained in the individual partitions of a key-sequenced file can be copied
using the unstructured option. However, if the source file is the primary partition
of an enhanced key-sequenced file and the unstructured option is specified,
then the metadata in the primary partition is not copied.
COPY: Copy Form Examples
These examples demonstrate using the COPY command without tape DEFINES.
To copy the first 500 records of MYFILE to YOURFILE (two unstructured files in the
current default subvolume), where input records are 80 bytes and the data is
copied in 800-byte physical reads:
-COPY MYFILE, YOURFILE, COUNT 500, RECIN 80, BLOCKIN 800
To copy records from RELFILE (a relative IN file) to FILEB (FUP transfers zero-
length records and records containing data):
-COPY RELFILE, FILEB, NO COMPACT
To output the contents of the EDIT file MYTEXT to the printer $LASER:
10> FUP / OUT $S.#LASER, NOWAIT/ COPY MYTEXT
Note. For examples of using the COPY command with tape DEFINEs, see the Guardian
Users Guide .