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 do u handle errors in BMS macro?

1908


What is report-item in COBOL?

1094


What is static and dynamic call in cobol?

1003


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

1142


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1167


What are 77 levels used for?

1052


How do get the result of your program directly on your pc?

2295


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1033


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2395


How do you reference the following file formats from cobol programs?

1120


what is amode(24), amode(31), rmode(24) and rmode(any)?

1092


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2014


Whats the difference between search & search ALL?

6364


What are the different data types in cobol?

1329


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1263