Comparison of 2 files in Mainframe

How to compare 2 data sets in Mainframe without using SUPERCE utility as the output is limited to 133 bytes for SUPERCE.

Showing Answers 1 - 6 of 6 Answers

Ankita Raina

  • Nov 18th, 2016
 

Use IEBCOMPR utility.

Code
  1. //TAPETAPE JOB  ...

  2.   //         EXEC PGM=IEBCOMPR

  3.   //SYSPRINT DD  SYSOUT=A

  4.   //SYSUT1   DD  DSNAME=SET1,LABEL=(2,SUL),DISP=(OLD,KEEP),

  5.   //             VOL=SER=001234,DCB=(DEN=2,RECFM=FB,LRECL=80,

  6.   //             BLKSIZE=2000,TRTCH=C),UNIT=tape

  7.   //SYSUT2   DD  DSNAME=SET2,LABEL=(,SUL),DISP=(OLD,KEEP),

  8.   //             VOL=SER=001235,DCB=(DEN=2,RECFM=FB,LRECL=80,

  9.   //             BLKSIZE=2000,TRTCH=C),UNIT=tape

  10.   //SYSIN    DD  *

  11.         COMPARE  TYPORG=PS

  12.          LABELS  DATA=ONLY

  13.   /*

  Was this answer useful?  Yes

CodeBulls

  • Nov 24th, 2017
 

Use File-Aid Comparison Instead. If SUPERCE is to be used, consider breaking the file into records of 133 bytes length by folding the records accordingly.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions