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 / kalone

First load both the files into 2 arrays and then sort them
on say ASC criteria and then take the first element from 1
file and compare with the element of other file , if
matches write into Outfile ,like wise we can keep on
reading & comparing till we get all the matching values in
the outfile.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by psb and acb?

1115


Can we redefine the field of x(200) to less than 200?

1362


What is the problem of ordered sequential files access?

1154


Write a program that uses move corresponding.

1136


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1163


Write a cobol program making use of the redefine clause.

1165


Name the sections present in data division.

1234


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1222


What is length is cobol?

1097


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1157


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1111


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1335


Difference between cobol and cobol-ii?

1268


What rules are followed by the search verb.

1102


What is the difference between Call and a Link?

1188