
FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-38
COPY: Copy Form
out-filename
is the name of the file that is the destination of the copy. This file can be a nondisk
device, a process, an existing disk file, or a tape or spool DEFINE name. The file
can also be any type of file that FUP handles, including structured files, EDIT files,
or SPOOLER (file code 129) files. You cannot use wild-card characters in
out-filename
or specify a
qualified-fileset
for it. For EDIT files, the
maximum number of output lines is 99,999,000.
If you omit
out-filename
, the OUT file enabled for FUP is used. For example,
this situation occurs when you use FUP interactively, causing the home terminal to
be the OUT file.
Although existing data in
out-filename
is never overwritten during a COPY
operation, the placement of the records being copied depends on the file type
specified for the destination file.
control-option
controls the method used for copying.
COUNT num-records
is the number of records to copy.
If you omit COUNT and do not use the FIRST option, FUP copies all
records from the first record through the end-of-file (EOF).
If you omit COUNT and use FIRST, FUP copies all records from the file
indicated by FIRST through the EOF.
FIRST { ordinal-record-num }
{ KEY { record-spec | key-value } }
{ KEY64 { record-spec } }
{ key-specifier ALTKEY key-value }
names the starting record of the input file for the copy. If you omit FIRST, the
copy starts with the first record of the input file.
ordinal-record-num
is the number of records (from the beginning of the file) to be skipped. The
first record in a file is record zero. If you specify this option for an
unstructured disk file, the copy begins at:
ordinal-record-num * in-record-length
Note.
For more information on the placement of the records, see
COPY: Copy Form
Guidelines
on page 2-51.
Note.
The actual reading begins with the first record in the source file.