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 difference between next sentence and continue in cobol programing language?

1220


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1115


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

861


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

4717


example for sub strings ? and refernce modifications whit output pls

2315


Name some of the examples of COBOl 11?

3136


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1225


Which is not true about evaluate statement

2450


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

1323


What is perform what is varying?

1159


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

3257


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2126


What are the different open modes available in cobol?

1183


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1222


What are literals?

1126