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 

Matching records with Sort

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
nex
Beginner


Joined: 22 May 2003
Posts: 8
Topics: 4

PostPosted: Thu Sep 15, 2005 4:34 pm    Post subject: Matching records with Sort Reply with quote

I have this requirement. I need to match records of 2 files FILE1 (LRECL 80) and FILE2(LRECL 130).
FILE1: ( Data in col. pos 3 - 12) (KEY = Col. 3-12)
Code:
  aa aaa aaa
  bb bbb bbb
  cc ccc ccc


FILE2: ( Data in col. pos 1 - 10 , 11-20) (KEY = Col. 1-10)
Code:
aa aaa aaa  fsdf dsaj
bb bbb bbb  fsfs
cc ccc ccc   fsfs
dd ddd ddd  fsfs
ee eee eee  f ff


In output I want records from FILE2 matching key in file1:
Code:
aa aaa aaa  fsdf dsaj
bb bbb bbb  fsfs
cc ccc ccc   fsfs


For every key in FILE1 , there will be a corresponding record in FILE2.

Has to be done in SORT. My shop doesn't have EasyTrieve.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12359
Topics: 75
Location: San Jose

PostPosted: Thu Sep 15, 2005 4:48 pm    Post subject: Reply with quote

nex,

Please search before posting. check these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=10&highlight=splice

http://www.mvsforums.com/helpboards/viewtopic.php?t=4690&highlight=joinkeys

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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