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

Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1089


i need a small 3d program using inline and outline.

2203


What are 77 levels used for?

1104


When is inspect verb is used in cobol?

1252


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2129


Why would you use find and get rather than to obtain?

1183


how do you reference the variable block file formats from cobol programs

1246


How are the next sentence and continue different from each other?

1291


how to convert the recors form vsam file to db2 table tru file aid

3255


Mention the guidelines to write a structured cobol program?

1089


) what is the difference between AID and HANDLE AID?

2149


What is the difference between next sentence and continue in cobol programing language?

1220


What is the local-storage section?

1142


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

2015


What is the difference between binary search and sequential search?

1088