FCOPY Reference Manual (32212-90008)

34 Chapter3
FCOPY Applications and Examples
Copying Files of Varying Sizes
Copying Files of Varying Sizes
You can determine the block size of a file by multiplying its record size by its block factor.
To copy a file when you do not know the block size or when the block size varies (as it could
on a magnetic tape), use records of undefined length for both files.
In the file equations, specify a record size at least as large as the largest record you expect.
For example,
>:FILE OLDTAPE;REC=-16384,,U,ASCII;DEV=TAPE
>:FILE NEWTAPE;REC=-16384,,U,ASCII;DEV=TAPE
>FROM=*OLDTAPE;TO=*NEWTAPE
This copies all records from the first file of one tape to another tape, preserving the record
structure. You can use the FILES parameter to copy more than one file. If you are copying
an MPE V/E store tape, specify the number of files stored plus six. These extra files contain
tape header information for the STORE program.