View previous topic :: View next topic
|
Author |
Message |
Rjadeja
New User
Joined: 18 Feb 2008 Posts: 9 Location: Mumbai
|
|
|
|
Hi All,
I have threee input files callled A,B,C and output file D and wanted to match on basis of field called NUMBER. All files are sorted on NUMBER field.
If record of file A matches with B or C wrtie record in file D.
Can you please suggest how to do this. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Depending on how much experience you have, you could write a 3-file match/merge using the A file as the driving file.
If your experience is somewhat limited, you could consider combining the B and C files and cloning the 2-file match/merge tested sample code that is an attachment to the "Sticky" near the top of this COBOL part of the forum. |
|
Back to top |
|
|
Rjadeja
New User
Joined: 18 Feb 2008 Posts: 9 Location: Mumbai
|
|
|
|
Thanks a lot. I was not thinking in that and trying to compare one file with two files. I got it your point. Thanks for your help and quick response |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck
Someone will be here if there are questions/problems.
d |
|
Back to top |
|
|
|