IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Get Duplicate Records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Chirag Dhull

New User


Joined: 29 Aug 2008
Posts: 8
Location: Bangalore

PostPosted: Fri Aug 29, 2008 1:18 pm
Reply with quote

Hi,

I need to find the Duplicate Records when comparing two copies of the same file . one copy has the duplicates , other doesnt .

For Eg : -

File A :-
A
B
C
B
D
E
D

File B : -
A
B
C
D
E

So , i want the Output file to have O/p :
B
D

Is it possible without using Comparex??
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Aug 29, 2008 9:46 pm
Reply with quote

It's not clear what you want to do. Your example doesn't make it clear which records in which input files you want in the output file. Please show a better example of your input records and what you want for output with all relevant variations, and explain the "rules" for getting from input to output. For example:

The key is in position 1. The other field is an "identifier".

Code:

File A :-
A  F1A1
B  F1B1
C  F1C1
B  F1B2
D  F1D1
E  F1E1
D  F1D2

File B : -
A  F2A1
B  F2B1
C  F2C1
D  F2D1
E  F2E1

Output

????
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top