Two files can be compared using the CA-Librarian Comparator II utility.
The Comparator II is a utility program you can use to compare two files and report on their differences and similarities.
A file presented for comparison can be a sequential file, a member of a partitioned data set, or a member of a CA-Librarian Master file.
To view samples and details, please see the Users Guide Chapter 9 Using Comparator II (z/OS and OS/390).
Here is a sample, comparing two members from different master files.
Please see the documentation for all options available:
//LIBCOMP2 EXEC PGM=COMP2 //STEPLIB DD DSN=YOUR.LIBRARIAN.CAILIB,DISP=SHR //SYSUT1 DD DSN=YOUR.FIRST.LIBRARIAN.MASTER.FILE,DISP=SHR //SYSUT2 DD DSN=YOUR.SECOND.LIBRARIAN.MASTER.FILE,DISP=SHR //SYSPRINT DD SYSOUT=* //SYSPUNCH DD SYSOUT=* //SYSIN DD * OLDFILE MEMBER=MEMBERNAME,STRING=ALL NEWFILE MEMBER=MEMBERNAME,STRING=ALL DK PUN=YES,CLEARID=NO REP LST=ALL //
If you want to see only changes specify:
CA-Librarian Access Method (LIB/AM) is an option providing a direct read-only interface between IBM language translators and CA-Librarian master files.
LIB/AM allows members stored on a master file to be read as if they were members stored on a partitioned data set.