I have 2 files which I need to join and get the union of both after removing duplicates. But I need to remove the duplicates based on a 3rd file. If the duplicate record is present in 3rd file then I need to pick the duplicate record from 1st file else I need to pick the record from 2nd file.
Sample
1st file :
account1record from file1
account2record from file1
account3record from file1
2nd file :
account1record from file2
account2record from file2
account4record from file2
3rd file
account1record from file3
Expected result
account1record from file1 ------ since this is present in 3rd file
account2record from file2 ------ since this is not present in 3rd file
account3record from file1
account4record from file2
Join 2 data sets removing duplicates using a third input
-
- Posts: 6
- Joined: Thu Feb 22, 2018 2:12 pm
- Skillset: cobol,jcl,db2
- Referer: Internet
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: how to join 2 files removing duplicates using a third in
when posting, good manners suggest to use intelligent titles
starting a topic with "sort" as title in the syncsort forum section is unconsiderate
if You do not care to post properly there is no reason for anybody to spend time trying to help You
starting a topic with "sort" as title in the syncsort forum section is unconsiderate
if You do not care to post properly there is no reason for anybody to spend time trying to help You
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Posts: 6
- Joined: Thu Feb 22, 2018 2:12 pm
- Skillset: cobol,jcl,db2
- Referer: Internet
Re: how to join 2 files removing duplicates using a third in
Hi .. I apologize.... I thought of not loading the title with too much information.
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: how to join 2 files removing duplicates using a third in
how to join 2 files removing duplicates using a third input file
looks like a good title to me
topic edited to change the title
looks like a good title to me
topic edited to change the title
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Similar Topics
- Replies
- Views
- Last post
-
-
eliminate duplicates with different data
by cobol_dev » Fri Jun 03, 2022 3:47 am » in DFSORT/ICETOOL/ICEGENER - 7
- 1884
-
by cobol_dev
View the latest post
Wed Jun 15, 2022 10:44 pm
-
-
- 1
- 2351
-
by sergeyken
View the latest post
Fri Jun 03, 2022 2:49 am
-
- 6
- 2355
-
by engh
View the latest post
Wed Sep 04, 2024 7:41 pm
-
- 5
- 4612
-
by arya_starc
View the latest post
Thu Sep 23, 2021 4:37 pm
-
-
Join parts of two records from same file
by Mickes » Thu Apr 27, 2023 3:47 am » in DFSORT/ICETOOL/ICEGENER - 3
- 1227
-
by sergeyken
View the latest post
Sat Apr 29, 2023 1:32 pm
-