FCOPY Reference Manual (32212-90008)
Chapter 3 39
FCOPY Applications and Examples
Copying Labeled Tapes
Copying Labeled Tapes
Instructions for copying to and from labeled tapes are given below, as well as an example of
how to deblock a labeled tape.
Copying Files to Labeled Tapes
The default parameter NEXT specifies that a file is to be written to the current position on
the tape. If this is a newly mounted tape, the position will be the beginning of the tape.
To copy a single file starting at the beginning of the tape:
1. Use the NEXT parameter in the FILE command describing the labeled tape. For
example,
>:FILE LTAPE;DEV=TAPE;LABEL=TLABEL,,,NEXT;REC=-80,10,F,ASCII
2. Copy the first disk file to the tape, using an asterisk before the tape file name to
backreference the file command. For example,
>FROM=FILEA;TO=*LTAPE
EOF FOUND IN FROMFILE AFTER RECORD 19
20 RECORDS PROCESSED * * * 0 ERRORS
To copy a second file to the same labeled tape, specify the desired position of the file.
1. Enter a number, in this case 2, in place of the NEXT parameter in the FILE command.
>:FILE LTAPE;DEV=TAPE;LABEL=TLABEL,,,2;REC=-80,10,F,ASCII
2. Copy the file to the tape, using an asterisk before the tape file name to backreference
the file command. For example,
>FROM=SRCFILE;TO=*LTAPE
EOF FOUND IN FROMFILE AFTER RECORD 9
10 RECORDS PROCESSED * * * 0 ERRORS
To combine data from two disk files into a single file on tape, use an asterisk alone as the
tofile in the command for copying the second disk file. For example,
>FROM=FILEC;TO=*LTAPE
EOF FOUND IN FROMFILE AFTER RECORD 9
10 RECORDS PROCESSED * * * 0 ERRORS
>FROM=FILED;TO=*