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
How to use the same COBOL program in Batch and CICS on lines? explain with an example
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?
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.
what is the use of outrecord?
what is difference between cobol and cobol/400
Difference between cobol and cobol-ii?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How arrays can be defined in COBOL?
What is comp-1 and comp-2?
how do you define single dimensional array and multidimensional array in your cobol?
Which is not true about evaluate statement
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is redefines clause in COBOL?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad