IEBCOMPR utility is used to
If we want to compare two PS files using this utility, both must have same record length.
Ex. Comparing two PS files
//STEP1 EXEC PGM=IEBCOMPR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=PSFILE1,DISP=SHR
//SYSUT2 DD DSN=PSFILE2,DISP=SHR
//SYSIN DD *
COMPARE TYPORG=PS
/*
The two PS files which are to be compared must be given in SYSUT1 and SYSUT2
COMPARE TYPORG=PS specifies that the input data sets are PS files.
If they are PDS/PDSE files, then we should give COMPARE TYPORG=PO
Ex. Comparing two PDS files
//STEP1 EXEC PGM=IEBCOMPR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=PDSFILE1,DISP=SHR
//SYSUT2 DD DSN=PDSFILE2,DISP=SHR
//SYSIN DD *
COMPARE TYPORG=PO
/*
- Compare two PS (Physical Sequential) Datasets
- Compare two PDS (Partitioned Data Set)/PDSE (Partitioned Data Set Extended)
If we want to compare two PS files using this utility, both must have same record length.
Ex. Comparing two PS files
//STEP1 EXEC PGM=IEBCOMPR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=PSFILE1,DISP=SHR
//SYSUT2 DD DSN=PSFILE2,DISP=SHR
//SYSIN DD *
COMPARE TYPORG=PS
/*
The two PS files which are to be compared must be given in SYSUT1 and SYSUT2
COMPARE TYPORG=PS specifies that the input data sets are PS files.
If they are PDS/PDSE files, then we should give COMPARE TYPORG=PO
Ex. Comparing two PDS files
//STEP1 EXEC PGM=IEBCOMPR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=PDSFILE1,DISP=SHR
//SYSUT2 DD DSN=PDSFILE2,DISP=SHR
//SYSIN DD *
COMPARE TYPORG=PO
/*