mainframezosjcl

Trying to compare 2 files in a batch job


I have a JCL job as follows trying to compare the contents of a dataset with an HFS file.

//CHKOUTP  EXEC PGM=ISRSUPC,PARM=(DELTAL,FILECMP)                   
//NEWDD    DD DSN=&&TMP1,DISP=(OLD,DELETE)                          
//OLDDD    DD PATH='/u/gemuser/test/expout.txt',PATHOPTS=(ORDONLY) 
//OUTDD    DD SYSOUT=A                                              

but it doesn't seem like ISRCUPC likes the HFS file. I get output thus:-

  ISRSUPC   -   MVS/PDF FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- ISPF FOR z/OS
NEW: SYS24173.T013517.RA000.TSTQFMT.TMP1.H01                 OLD: ...PATH=.SPECIFIED...
                                                                               
                   COMPARE SUMMARY LISTING (FILE COMPARE)                      
                                                                               
DIFF SAME                      N-BYTES O-BYTES N-LINES O-LINES N-HASH-SUM O-HASH-SUM
                                                                               
 **                               1188     400       9       5  BC58F79D   CBCCC86B
PROCESS OPTIONS USED: NONE                                                     

How should I code the HFS file in my JCL to have ISRSUPC use it?

I have searched for examples of ISRSUPC but none have HFS files, all use datasets.


Solution

  • I think it has used it - there are no error messages and you have output indicating that the files are different (The double asterisk under the DIFF heading).

    You may be getting mixed up because it's not showing all the differences, but that's because you've asked it to only indicate if the files are different, by using the FILECMP parm. Change that to LINECMP and you should get a comparison of each line.

    Bear in mind that Super-C has the following compare types and options for listing it's results:

    Compare Type               Listing Type 
    2  1. File                 2  1. OVSUM  
       2. Line                    2. Delta  
       3. Word                    3. CHNG   
       4. Byte                    4. Long   
                                  5. Nolist 
    

    as well as a vast array of processing options, for which descriptions can be found in the IPSF HELP panels for Super-C