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

Comparing datasets without using Sort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhicet2003

New User


Joined: 16 Nov 2005
Posts: 21

PostPosted: Wed Mar 29, 2006 12:07 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Mar 29, 2006 9:00 pm
Reply with quote

What software DO you want to use for this? (I agree that SORT doesn't make sense for your data format).
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Mon May 08, 2006 4:42 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Mon May 08, 2006 9:06 pm
Reply with quote

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
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Tue May 09, 2006 1:21 am
Reply with quote

Do you have Comparex tool, it could be easily accomplished using that.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Alternative of JoinKeys in SORT DFSORT/ICETOOL 2
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
Search our Forums:


Back to Top