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
What is the default value(s) for an initialize and what keyword allows for an override of the default?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
how to access the file from prodution from changeman tool and to submit a file to production
How do you reference the following file formats from cobol programs?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the utilization of copybook in cobol?
What is the difference between Global and External Variables?
What is the difference between comp and comp-3?
how do you reference the ksds vsam file formats from cobol programs
Which is not true about evaluate statement
how to convert the recors form vsam file to db2 table tru file aid
A table has two indexes defined. Which one will be used by the SEARCH?
i need a small 3d program using inline and outline.
Give some examples of command terminators?