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

How to use the same COBOL program in Batch and CICS on lines? explain with an example

2327


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2530


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1380


what is the use of outrecord?

2152


what is difference between cobol and cobol/400

22729


Difference between cobol and cobol-ii?

1192


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

1166


How arrays can be defined in COBOL?

1132


What is comp-1 and comp-2?

1181


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

1044


Which is not true about evaluate statement

2392


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

2011


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1063


What is redefines clause in COBOL?

1245


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1448