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
Read syntax diagramSkip visual syntax diagram
Syntax

>>-TTC--+-----------+--INPUT=ddname--OUTPUT=ddname-------------->
        '-LABEL=BLP-'                                

   .-NFILES=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 Z Data Tools function that uses the tape. For BLP processing requirements, see “Customizing the Security Environment” in the Z Data Tools 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
//ZDTOOLS   EXEC PGM=HFMMAIN
//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
/*