Matching files



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Matching files

Postby suneel549 » Fri Apr 24, 2009 1:52 pm

Hi,,,,

Please suggest me d cobol code for d following requirement....

I hav two sorted files FILE1,FILE2.
I want to move matched records to one file FILE3 and unmatched records to another file FILE4.
suneel549
 
Posts: 1
Joined: Fri Apr 24, 2009 1:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Matching files

Postby dick scherrer » Sat Apr 25, 2009 1:50 am

Hello and welcome to the forum,

At the top of the COBOL part of the forum, there is a Sticky called "2-file match/merge sample code " that contains a working example that provides the match/merge code you need.

Download that sample and modify for your use.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post