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

Copying Files Between HP 3000 Systems

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

You can use magnetic tapes to copy disk files from one HP 3000 system to another. If all files on a single tape have the same record size and type, copy the files from the first system to tape. Then copy the tape files onto the second system, as follows:

  1. Issue an MPE FILE command describing the tape to which you want to copy the disk files. You must specify the record size and structure. For example,

       >:FILE T;DEV=TAPE;REC=-80,16,F,ASCII
    
  2. Copy each of the disk files to the tape. Use an asterisk to backreference the FILE command describing the tape. Use SKIPEOF=,+1 to position the tape at the beginning of the next file. For example,

       >FROM=FUTIL;TO=*T
    
    
    
       EOF FOUND IN FROMFILE AFTER RECORD 297
    
    
    
       298 RECORDS PROCESSED * * * 0 ERRORS
    
    
    
       >FROM=DUMPER;TO=*;SKIPEOF=,+1
    
    
    
       EOF FOUND IN FROMFILE AFTER RECORD 405
    
    
    
       406 RECORDS PROCESSED * * * 0 ERRORS
    
    
    
       >FROM=SPOOLER;TO=*;SKIPEOF=,+1
    
    
    
       EOF FOUND IN FROMFILE AFTER RECORD 386
    
    
    
       387 RECORDS PROCESSED * * * 0 ERRORS
    
    
    
  3. Use the FILE command to describe the tape drive on the second system. The record size and structure must be specified and must match how the tape was written.

       >:FILE T;DEV=TAPE;REC=-80,16,F,ASCII
    
  4. Copy the files from tape to disk. Use an asterisk to backreference the FILE command describing the tape drive. Use SKIPEOF=,+1 to position the tape at the beginning of the next file. For example,

       >FROM=*T TO=FUTIL;NEW
    
    
    
       EOF FOUND IN FROMFILE AFTER RECORD 297
    
    
    
       298 RECORDS PROCESSED * * * 0 ERRORS
    
    
    
       >FROM=*;TO=DUMPER;SKIPEOF=,+1
    
    
    
       EOF FOUND IN FROMFILE AFTER RECORD 405
    
    
    
       406 RECORDS PROCESSED * * * 0 ERRORS
    
    
    
       >FROM=*;TO=SPOOLER;SKIPEOF=,+1
    
    
    
       EOF FOUND IN FROMFILE AFTER RECORD 386
    
    
    
       387 RECORDS PROCESSED * * * 0 ERRORS
    
NOTE: If the files are of varying structure, or have user labels or varying file codes, it is better to use the MPE STORE and RESTORE commands to move files between systems.
Feedback to webmaster