MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Match data from two files and produce a single file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> JCL/SORT
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Dec 07, 2005 6:32 am    Post subject: Match data from two files and produce a single file Reply with quote

How to match two files based on a key ?

There are several ways to merge / match two datasets.

See the "Create files with matching and non-matching records" Smart DFSORT Trick at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

See also:

http://www.mvsforums.com/helpboards/viewtopic.php?t=680&highlight=duplicate+splice
http://mvsforums.com/helpboards/viewtopic.php?t=4109&highlight=merge+files
http://mvsforums.com/helpboards/viewtopic.php?t=4838&highlight=match+sort
http://mvsforums.com/helpboards/viewtopic.php?t=598&highlight=merge+files
http://mvsforums.com/helpboards/viewtopic.php?t=11&highlight=match+sort
http://www.mvsforums.com/helpboards/viewtopic.php?t=2951&highlight=duplicate+splice
http://www.mvsforums.com/helpboards/viewtopic.php?t=10&highlight=splice
http://mvsforums.com/helpboards/viewtopic.php?t=3779&highlight=merge+files

Thanks,
Phantom
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri May 25, 2007 6:10 pm    Post subject: Reply with quote

For users running syncsort version 1.2 and above - you can use the JOIN feature.

Try this match logic
http://www.mvsforums.com/helpboards/viewtopic.php?p=22582#22582

Thanks,
Phantom
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed May 30, 2007 8:58 am    Post subject: Reply with quote

If you want to a Cartesian join of 2 datasets, then DFSORT SPLICE can come in handy.

Cartesian Join match using DFSORT Splice
http://www.mvsforums.com/helpboards/viewtopic.php?t=6271&highlight=cartesian


Thanks,
Phantom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> JCL/SORT All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group