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...

Suppose, file A has 100 records and file B has 500 records. We
want to write records common to both A and B into file C and
records which are present only in either A or B into another file D.
What should be the logic of Cobol program to achieve this?

Answer Posted / shrik

Sort both file A and B using the Key in ascending order..
Then read File A and B..
Compare records read frm A and B
If found Equal write into File C (common records)
If NOT write into file D

Is This Answer Correct ?    6 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

3217


What are the pertinent COBOL commands?

3113


Explain the configuration section of a cobol program with examples of syntax.

1140


Define static linking and dynamic linking.

1124


) How do u handle errors in BMS macro

1972


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

1138


Explain what you understand by passing by value.

1103


how do you reference the rrds file formats from cobol programs

1517


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1236


What is amode(31)

1115


What is rmode(any) ?

1198


HOw can I get the negative sign while deduct high value from low value

2220


What is the difference between Global and External Variables?

1321


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

1142


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

1291