26 Dec 2012

Super C compare

The below step will compare two input data sets and will write into an output data set based on exclude condition.

//SUPERC EXEC PGM=ISRSUPC,
//                  PARM=(DELTAL,LINECMP, '','')
//INFILE1  DD DSN=XX.YYY.INFILE1,
//                DISP=SHR
//INFILE2  DD DSN=XX.YYY.INFILE2,
//               DISP=SHR
//OUTFILE DD DSN=XX.YYY.OUTFILE,
//          DISP=(NEW,CATLG,DELETE),
//          DCB=(RECFM=FB,LRECL=80),
//          UNIT=DISK,SPACE=(TRK,(1,1),RLSE)
//SYSOUT DD SYSOUT=*
//SYSIN  DD *
  NEXCLUDE COLS 1:5

  OEXCLUDE COLS 1:5
/*



  • ISRSUPC - Is the utility used for Super C compare.
  • INFILE1    - Is the first input PS which contains data.
  • INFILE2    - Is the second input PS. 
  • OUTFILE  - Is the Output PS, INFILE! & INFILE2 will be compared based on the exclude condition.
  • NEXCLUDE COLS - Its is a line exclude column position in the first input PS.  For the rows values starting from column 1 to column 5 will be excluded and the remaining data will be compared.
  • OEXCLUDE COLS - Similar to NEXCLUDE COLSis a line exclude in second input PS.