|
View previous topic :: View next topic
|
| Author |
Message |
abhicet2003
New User
Joined: 16 Nov 2005 Posts: 21
|
|
|
|
please give me the jcl for comparing two datasets and listing out the common records by eliminating duplicates without using sort utility.
Eg.
dataset1 contains Deepak,Arun,Dileep,Aashish,Arun,Anup
dataset2 contains Anup,Arun,Mohan,Kavitha,Deepak.
Output should be Deepak,Arun,Anup.
I don't want the dataset to be sorted and it should be in the order of dataset1.
Thanks
Sandi |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| What software DO you want to use for this? (I agree that SORT doesn't make sense for your data format). |
|
| Back to top |
|
 |
IQofaGerbil
Active User

Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
| You do not say but is the data only and exactly as you describe for your datasets or is there other data there also? If there is more please give example. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Sandi,
The fact that you want the output records in the original order of dataset1 does NOT rule out using DFSORT as it can retain the original order. If you don't want to use DFSORT for some other reason, that's fine, but you shouldn't rule it out based on something you think it can't do that it can. |
|
| Back to top |
|
 |
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
| Do you have Comparex tool, it could be easily accomplished using that. |
|
| Back to top |
|
 |
|
|