FCOPY Reference Manual (32212-90008)
40 Chapter3
FCOPY Applications and Examples
Copying Labeled Tapes
EOF FOUND IN FROMFILE AFTER RECORD 9
10 RECORDS PROCESSED * * * 0 ERRORS
The parameter ADDF specifies that a file is to be written following all existing files on the
tape. To add a new file to a tape without overwriting existing files, perform the following
steps:
1. Use the ADDF parameter in the MPE FILE command. ADDF positions the tape drive
after the last file on the tape. For example,
>:FILE LT2=FILE4;DEV=TAPE;LABEL=TLABEL,ANS,,ADDF
2. Copy the file to the tape, preceding the tofile name with an asterisk to backreference the
FILE command. For example,
>FROM=FILEF;TO=*LT2
EOF FOUND IN FROMFILE AFTER RECORD 9
10 RECORDS PROCESSED * * * 0 ERRORS
Copying Files from Labeled Tapes
You may copy a particular file from a labeled tape by using its number or its file name.
When reading a labeled tape, it is usually not necessary to specify the record structure of
the tape file in a file equation because the information is read from the labels.
Copying Files by Number
You can copy a file from labeled tape using its number, as follows:
1. Specify its file number in a FILE command. For example, the command below specifies
the third tape file:
>:FILE LT;DEV=TAPE;LABEL=TLABEL,ANS,,3
Copy the file from the tape, preceding the fromfile name with an asterisk to
backreference the FILE command. For example,
>FROM=*LT;TO=NEWDISK;NEW
EOF FOUND IN FROMFILE AFTER RECORD 19
20 RECORDS PROCESSED * * * 0 ERRORS
Copying Named Files
You can also copy a named file from a labeled tape by using its name, as follows:
1. Specify the file name in the MPE FILE command describing the tape file. For example,
the command below specifies a file named FILE4:
>:FILE LTNAME=FILE4;DEV=TAPE;LABEL=TLABEL,ANS,,0
2. In the FCOPY command, backreference the FILE command by preceding the fromfile
name with an asterisk. For example,