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

Write the code implementing the perform … varying.

1077


What type of SDLC u followed? Why?

2002


What are the access modes of START statement?

1276


What is the difference between binary search and sequential search?

1097


What are literals?

1147


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1222


Can you please let me know the centre name of INS certification in Kolkata.

2249


What is a scope terminator give example?

1118


Write a cobol program making use of the redefine clause.

1189


What is the difference between PIC 9.99 and 9v99 in COBOL?

1337


What are different data types in cobol?

1327


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3234


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

1177


Difference between array and sub-script ?

1669


What are the various section in data division and briefly explain them.

1192