MVSFORUMS.com
A Community of and for MVS Professionals
FAQ
Search
Quick Manuals
Register
Profile
Log in to check your private messages
Log in
Match data from two files and produce a single file
MVSFORUMS.com Forum Index
->
JCL/SORT
View previous topic
::
View next topic
Author
Message
Phantom
Data Mgmt Moderator
Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet
Posted: Wed Dec 07, 2005 6:32 am
Post subject: Match data from two files and produce a single file
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
Phantom
Data Mgmt Moderator
Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet
Posted: Fri May 25, 2007 6:10 pm
Post subject:
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
Phantom
Data Mgmt Moderator
Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet
Posted: Wed May 30, 2007 8:58 am
Post subject:
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
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
MVSFORUMS.com Forum Index
->
JCL/SORT
All times are GMT - 5 Hours
Page
1
of
1
Jump to:
Select a forum
Announcements
----------------
MVSFORUMS - Announcements
Help Boards
----------------
Application Programming
Database
Utilities
Job Control Language(JCL)
CICS and Middleware
IMS
TSO and ISPF
Data Management
Problem Determination
Mainframe Challenge
About Mvsforums
Other Technical Topics
Related Non-Technical Topics
Interview Q & A
General
----------------
Tools and Downloads
IT News
Technical FAQ (Tips)
----------------
Programming Languages
DB2/IMS
JCL/SORT
TSO and ISPF
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