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 twofiles based on the Key using synctool

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


Joined: 02 Dec 2002
Posts: 2
Topics: 2

PostPosted: Thu Feb 10, 2005 4:19 am    Post subject: Match twofiles based on the Key using synctool Reply with quote

I have three files and i want do a vertical merge based on the key. if a record is missing in one of the file a low value should be sustituted for corresponding fields.In the below example position 1 is the key for all input files. The output file should be a mege of input file 1 , 2 and 3.

Example explained below.

For eg

Input 1
1 aaa
2 bbb
3 <space>
4 ddd

Input 2
1 222
3 333
4 444
5 555

Input 3
1 xxxx
2 zzzz
3 yyyy
5 nnnn


Output
1 aaa......................111.......................xxxx
2 bbb......................<lowvalues>..........zzzz
3 <space>...............333.......................yyyy
4 ddd.......................444.......................<lowvalues>
5 <lowvalues>.........555........................nnnn

I have searched the forum and could not find exact result for me. I would appreciate your help.

Thanks
_________________
Thanks & Regards
Karuna
Back to top
View user's profile Send private message
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Thu Feb 10, 2005 7:38 am    Post subject: Reply with quote

Is there a range specified for the key field ? Does any of these 3 input files contain all the key field values ?

If I was you, I would have preferred to write a program for this.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Feb 10, 2005 8:18 am    Post subject: Reply with quote

dkaruna,

Please follow the rules. Do not open more than topic which discusses a similar issue. Also this topic has been discussed many times. check this link

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

http://www.mvsforums.com/helpboards/viewtopic.php?t=974&highlight=merge

Hope this helps...

Cheers

kolusu
_________________
Kolusu
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