FCOPY Reference Manual (32212-90008)

Chapter 3 41
FCOPY Applications and Examples
Copying Labeled Tapes
>FROM=*LTNAME;TO=FILED;NEW
EOF FOUND IN FROMFILE AFTER RECORD 9
10 RECORDS PROCESSED * * * 0 ERRORS
Concatenating Files from a Labeled Tape
You can concatenate files from a labeled tape into a single file, as follows:
1. Use the NEXT parameter in the MPE FILE command describing the tape. For example,
>:FILE LTAPE;DEV=TAPE;LABEL=TLABEL,ANS,,NEXT;REC=-80,10,F,ASCII
2. In your FCOPY command, backreference the FILE command by preceding the fromfile
name with an asterisk. To copy the labeled tape files to a single file, use the FCOPY
FILES function.
>FROM=*LTAPE;TO=CONCAT;FILES=4
EOF FOUND IN FROMFILE AFTER RECORD 19
20 RECORDS PROCESSED * * * 0 ERRORS
EOF FOUND IN FROMFILE AFTER RECORD 29
30 RECORDS PROCESSED * * * 0 ERRORS
EOF FOUND IN FROMFILE AFTER RECORD 19
20 RECORDS PROCESSED * * * 0 ERRORS
EOF FOUND IN FROMFILE AFTER RECORD 9
10 RECORDS PROCESSED * * * 0 ERRORS
Deblocking Labeled Tapes
You can read and deblock labeled tapes with blocked odd-byte records similarly to
unlabeled tapes.
1. It is necessary to specify the tape characteristics as undefined records so that the byte
count in the header labels will be ignored. For example, if the tape has 133-byte records,
blocked in twenty-record blocks, you can deblock the records as follows:
>FILE LTAPE;DEV=TAPE;LABEL=TLABEL;REC=-2660,1,U,ASCII
2. In the FCOPY command, set DEBLOCK equal to the original record length.
>FROM=*LTAPE;TO=EVENBYTE;DEBLOCK=-133;NEW
Note that this method is not necessary with labeled tapes created on MPE. MPE always
specifies an even byte count in the header label if there is more than one record per tape
block.