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

Why did you choose to work with ibm mainframe cobol programming?

1123


In which area will you utilize 88 level items in cobol?

1173


Name the sections present in data division.

1256


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

1210


how can i see junk values in dclgen or in hostvariable of comp ?

3006


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

3271


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

1360


What are 77 levels used for?

1115


Write some characteristics of cobol as means of business language.

1150


i want a program using by if, evaluate , string, unstring, perform, occurs?

4733


) How do u handle errors in BMS macro?

1982


Explain how you can characterize tables in cobol?

1068


What kind of error is trapped by on size error option?

1251


What are the different rules to perform a Search?

1105


What is the difference between external and global variables in COBOL?

1478