FCOPY Reference Manual (32212-90008)

38 Chapter3
FCOPY Applications and Examples
Copying Tapes
>:FILE AMALGAM;ACC=APPEND;REC=-80,16,F,ASCII;DISC=5000
2. Use a second FILE command to describe the tape file. For example,
>:FILE T;DEV=TAPE;REC=-80,1,F,ASCII
3. Copy the first tape file to the disk file. Precede the file names with asterisks to reference
the two file commands. If you intend to copy only a subset of the tape file, use the
SUBSET function. For example, the command below copies all records with the character
"C" in column 1.
>FROM=*T;TO=*AMALGAM;SUBSET="C",1
9 RECORDS PROCESSED * * * 0 ERRORS
4. In subsequent FCOPY commands, use an asterisk to reference the same tofile. Use
SKIPEOF to specify the position of the fromfile on tape. For example,
>FROM=*T;TO=*;SKIPEOF=1
16 RECORDS PROCESSED * * * 0 ERRORS
>FROM=*;TO=*;SKIPEOF=3
EOF FOUND IN FROMFILE AFTER RECORD 302
303 RECORDS PROCESSED * * * 0 ERRORS