Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I have the requirement to compare the two files and pick up
the matching records.
File 1. file2

23 32
32 13
34 15
35 36
36 35
43

Get the matching records from this 2 files to out file. how
you will do this in cobol program?

Answer Posted / anupam

EVALUATE KEY1 > KEY2 ALSO KEY2 < KEY1
WHEN FALSE ALSO FALSE
READ F1 NEXT RECORD
READ F2 NEXT RECORD
WHEN TRUE ALSO FALSE
READ FILE1 NEXT RECORD
WHEN FALSE ALSO TRUE
READ FILE2 NEXT RECORD
END-EVALUATE

Is This Answer Correct ?    3 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Global and External Variables?

1440


Can we change the password using ALTER? anyone tried and changed?

2082


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

2203


how do you reference the rrds file formats from cobol programs

1663


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3321


What is the difference between comp and comp-3 usage?

1265


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2607


Write a program to explain size error.

1240


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2434


What is a SSRANGE and NOSSRANGE?

1535


What is rmode(any) ?

1333


what are decleratives in cobol?

2311


What is the use of intialize verb?

1304


What is the LINKAGE SECTION used in COBOL?

1608


What is the problem of ordered sequential files access?

1210