HPlogo FCOPY Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 FCOPY Applications and Examples

Copying Files of Varying Sizes

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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.

Feedback to webmaster