Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello,
Why does 123 not follow 111 in the output?
If you properly sort the 2 files by the "key" you can download the 2-file match/merge example code from the "Sticky" near the top of the cobol part of the forum.
The code there will do what you want with very minor modification.