TTC (Tape to Tape Compare)

Purpose
Compares two tapes byte by byte.
Usage notes
Use this function to compare, byte by byte, the data on one tape with the data on another. This function is particularly useful if you have made a copy of a tape, and you want to check that the duplicate is exactly the same as the original. Comparison starts at the current tape position of each tape. When the first difference is found, comparison stops and the comparison results are printed.

Specify a DDNAME for the tape.

Options
You can compare the entire tape, or a specific number of files.
Related functions
TLT
Copy multivolume, multiple-file labeled tapes
TT
Copy files from one tape to another without label processing
TTC
Compare two tapes byte by byte
TTR
Copy a file from one tape to another with reblocking
Figure 1. Syntax

1 TTC? LABEL=BLP INPUT=ddname OUTPUT=ddname
1! NFILES=1
1 NFILES=nfiles
ddname
Refers to a DD or TSO ALLOC statement.
LABEL=BLP
Specifies that bypass label processing is used. This parameter must be specified with the first File Manager function that uses the tape. For BLP processing requirements, see “Customizing the Security Environment” in the File Manager for z/OS Customization Guide.
nfiles
Number of tape files to be compared. The maximum is 99 999; the default is 1.
EOV
Compares files until a double tape mark or an EOV label is reached.
EOD
Compares files until the delimiter specified in the EOD parameter of the SET function is reached.
//TTC JOB (acct),'name'  Tape to Tape Compare
//FILEMGR   EXEC PGM=FILEMGR
//SYSPRINT  DD SYSOUT=*
//TAPE1     DD UNIT=381,VOL=SER=FMO1,
//             DISP=OLD,LABEL=(,BLP)
//TAPE2     DD UNIT=382,VOL=SER=FMO2,
//             DISP=OLD,LABEL=(,BLP)
//SYSIN     DD *
$$FILEM TTC INPUT=TAPE1,OUTPUT=TAPE2,
$$FILEM     NFILES=EOV
$$FILEM EOJ
/*