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 a File that has duplicate records. I need only those records that occur more than
thrice.?

Answer Posted / harsha

1 Sort the file on any key
2 Read file sequentially. While reading, store the record
in a working storage temporary variable and add count
counter variable.
3 Every time you read record, compare it with temporary
variable. if it is same increase counter otherwise reset
counter.
4 When counter become greater than three, write record to
an outfile.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default value(s) for an initialize and what keyword allows for an override of the default?

1267


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2536


how to access the file from prodution from changeman tool and to submit a file to production

7630


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

1206


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1307


What is an in line perform? When would you use it? Anything else you wish to say about it.

1143


What is the utilization of copybook in cobol?

1276


What is the difference between Global and External Variables?

1440


What is the difference between comp and comp-3?

1228


how do you reference the ksds vsam file formats from cobol programs

1246


Which is not true about evaluate statement

2515


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

3314


A table has two indexes defined. Which one will be used by the SEARCH?

1330


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

2262


Give some examples of command terminators?

1325