Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Get Duplicate Records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to Get Duplicate Records
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 Moderator


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

PostPosted: Fri Aug 29, 2008 9:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us