by rahul2825 » Fri May 29, 2009 8:43 pm
hi you can even file -aid for the same to compare 2 ps files and get uncommon recs.
in the control card u give the keys to be compared i have done this some 3 years back so i couldnt recall.
//MP07U194 EXEC PGM=FILEAID,REGION=6M
//STEPLIB DD DISP=SHR,DSN=SYS1.FILEAID.LOAD
//SYSPRINT DD SYSOUT=&SYSOT
//SYSLIST DD SYSOUT=&SYSOT,DCB=(LRECL=183,BLKSIZE=1830)
//*
//DD01 DD DSN=file1
//DD01C DD DSN=file2
//* DUPLICATES ON HISTORY
//*
//DD01CO1 DD DSN=file3,DISP=(,CATLG),
// DCB=(RECFM=FB,LRECL=90,BLKSIZE=27000),
// SPACE=(27000,(15000,100),RLSE),UNIT=DISK
//*
//DD01CP DD DSN=(control card1 where u will put compare options),DISP=SHR
//*
//SYSIN DD DSN=(controlcard2),DISP=SHR
//*
u can give in control card the which is generated by the fileaid as below (u need to give fields positons and all that)
* control card1
* COMPARE OPTIONS
0000 COMPARE_MODE=UNFORMATTED
0000 COMPARE_TYPE=SORTED
0000 RECORDS_TO_COMPARE=ALL
0000 DIFFERENCES_TO_COMPARE=ALL
*
* PRINT OPTIONS
0000 PRINT_FORMAT=CHAR
0000 MAX_DIFFERENCES_TO_REPORT=ALL
0000 RECORD_TYPES_TO_PRINT=CHANGED,DELETED,INSERTED
0000 UNFORMATTED_REPORT_STYLE=CONDENSED
0000 UNFORMATTED_PRINT_SEQUENCE=GROUP
0000 CHANGED_RECORD_PRINT_CONTENT=RECORD
0000 INSERTED_RECORD_PRINT_CONTENT=RECORD
0000 DELETED_RECORD_PRINT_CONTENT=RECORD
0000 MATCHED_RECORD_PRINT_CONTENT=RECORD
0000 CONDENSED_REPORT_PRINT_ONLY_CHANGED_DATA=NO
0000 CONDENSED_REPORT_UNDERLINE_CHANGES=BOTH
0000 CONDENSED_REPORT_UNDERLINE_SYNC/KEY=BOTH
0000 CONDENSED_REPORT_SUPPRESS_PRINT_WITHOUT_CHANGES=YES
0000 CONDENSED_REPORT_PRINT_RULER=TOP
0000 CONDENSED_REPORT_CHANGED_DATA_UNDERLINE_CHARACTER=_
0000 CONDENSED_REPORT_SYNC/KEY_UNDERLINE_CHARACTER=
*
* OUTPUT OPTIONS
0000 WRITE_TO_FILE_1=OLD/DELETED
0000 WRITE_TO_FILE_1=NEW/INSERTED
*
* SYNC/KEY OPTIONS
0000 SYNC/KEY001:OLD_POSITION=00001,OLD_LENGTH=00002,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00001,NEW_LENGTH=00002,NEW_DATA_TYPE=C
0000 SYNC/KEY002:OLD_POSITION=00003,OLD_LENGTH=00004,OLD_DATA_TYPE=C,
0000 SYNC/KEY002:OLD_POSITION=00003,OLD_LENGTH=00004,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00003,NEW_LENGTH=00004,NEW_DATA_TYPE=C
0000 SYNC/KEY003:OLD_POSITION=00007,OLD_LENGTH=00016,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00007,NEW_LENGTH=00016,NEW_DATA_TYPE=C
0000 SYNC/KEY004:OLD_POSITION=00023,OLD_LENGTH=00016,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00023,NEW_LENGTH=00016,NEW_DATA_TYPE=C
0000 SYNC/KEY005:OLD_POSITION=00039,OLD_LENGTH=00015,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00039,NEW_LENGTH=00015,NEW_DATA_TYPE=C
0000 SYNC/KEY006:OLD_POSITION=00054,OLD_LENGTH=00006,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00054,NEW_LENGTH=00006,NEW_DATA_TYPE=C
0000 SYNC/KEY007:OLD_POSITION=00060,OLD_LENGTH=00007,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00060,NEW_LENGTH=00007,NEW_DATA_TYPE=C
0000 SYNC/KEY008:OLD_POSITION=00081,OLD_LENGTH=00001,OLD_DATA_TYPE=C,
SORTED=YES,SEQUENCE=ASCENDING,
NEW_POSITION=00081,NEW_LENGTH=00001,NEW_DATA_TYPE=C
*
* COMPARE FIELDS SET 0001
control card 2
000001 $$DD01 COMPARE