EasyManua.ls Logo

HP T6553 D45

HP T6553 D45
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FUP Commands
File Utility Program (FUP) Reference Manual523323-014
2-54
COPY: Copy Form Examples
COPY: Copy Form Examples
These examples demonstrate using the COPY command without tape DEFINES.
To copy the first 500 records of MYFILE to YOURFILE (two unstructured files in the
current default subvolume), where input records are 80 bytes and the data is
copied in 800-byte physical reads:
-COPY MYFILE, YOURFILE, COUNT 500, RECIN 80, BLOCKIN 800
To copy records from RELFILE (a relative IN file) to FILEB (FUP transfers zero-
length records and records containing data):
-COPY RELFILE, FILEB, NO COMPACT
To output the contents of the EDIT file MYTEXT to the printer $LASER:
10> FUP / OUT $S.#LASER, NOWAIT/ COPY MYTEXT
To copy a series of files onto magnetic tape, use a FUP COPY command for each
file and include the NO REWINDOUT option in each command except the last one:
-COPY FILE1, $TAPE, NO REWINDOUT
-COPY FILE2, $TAPE, NO REWINDOUT
-COPY FILE3, $TAPE
To return the files copied in the previous example from tape to disk:
-COPY $TAPE, NFILE1, NO REWINDIN
-COPY $TAPE, NFILE2, NO REWINDIN
-COPY $TAPE, NFILE3
To copy two records from the key-sequenced FILEX to FILEZ with a primary key
value specifying the starting record for FILEX:
-COPY FILEX, FILEZ, COUNT 2, FIRST KEY [ "U","P",89 ]
To copy all the files that have changed since a specified date (01/01/01) to a
backup tape:
-COPY $MOD.*.* WHERE MODTIME > 1 JAN 2001, $TAPE
To read records from a file (PERSONAL), translate them using a specific
translation table (MY_ENCRYPT), and copy them to another file (SECRET):
-COPY personal,secret,XLATE MY_ENCRYPT
To give the file you are copying a title and display four lines of the file (including the
title) on the terminal screen:
-COPY FILEZ, , TITLE, COUNT 4
Note. For examples of using the COPY command with tape DEFINEs, see the Guardian
User’s Guide .

Table of Contents

Related product manuals