FCOPY Reference Manual (32212-90008)

Chapter 3 37
FCOPY Applications and Examples
Copying Tapes
old blocking factor. For example, a block of ten 79-byte records would be represented as
a 790-byte record with a blocking factor of 1:
>:FILE TAPEFILE;REC=-790,1,U,ASCII
2. In the FCOPY command, set DEBLOCK equal to the original record length. For example,
>FROM=*TAPEFILE;TO=DISCFILE;DEBLOCK=-79
EOF FOUND IN FROMFILE AFTER RECORD 789
790 RECORDS PROCESSED * * * 0 ERRORS
Combining Disk Files on Tape
To combine several disk files into a single tape file, follow the steps described below:
1. Use the MPE FILE command to describe the tape file to be written. For example,
>:FILE T;DEV=TAPE;REC=-80,20,F,ASCII
2. Copy the first disk file to tape using an asterisk before the tofile name to backreference
the FILE command. For example,
>FROM=DATA1;TO=*T
EOF FOUND IN FROMFILE AFTER RECORD 610
611 RECORDS PROCESSED * * * 0 ERRORS
3. Copy the subsequent disk files to tape without repositioning the tape drive. Use an
asterisk as the tofile name. For example,
>FROM=DATA2;TO=*
EOF FOUND IN FROMFILE AFTER RECORD 711
712 RECORDS PROCESSED * * * 0 ERRORS
>FROM=DATA3;TO=*
EOF FOUND IN FROMFILE AFTER RECORD 472
473 RECORDS PROCESSED * * * 0 ERRORS
Combining Tape Files on Disk
To combine several tape files, or subsets of tape files, in a single disk file, perform the
following steps:
1. Use the MPE FILE command to give the disk file append access (ACC=APPEND). The
disk file must be large enough to hold the contents of all of the tape files, and you must
specify its record structure. For example,