File Utility Programming (FUP) Reference Manual

FUP Commands
File Utility Program (FUP) Reference Manual523323-015
2-57
Commands Related to Copy: Copy Form
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
After you enter the command, the terminal displays:
$BASE.SAMPLE.FILEZ 12MAY01 DATA MODIF: 26APR2001 14:19
This is a sample file to show how the TITLE option within FUP
COPY works.
4 RECORDS TRANSFERRED
Commands Related to Copy: Copy Form
COMMAND Function Page
DUP[LICATE] Creates identical copies of disk files 2-67
LOAD Creates a structured file from scratch 2-136
CONFIG[URE] Sets options for the COPY command 2-28