Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Duplicate PARM on OUTFIL sancraig16 SYNCSORT 11 Thu Apr 05, 2018 10:25 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us