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
Which division and paragraphs are mandatory for a COBOL program?
In COBOL programming, what is PERFORM? What is VARYING?
Difference between array and sub-script ?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Whats the difference between search & search ALL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the difference between binary search and sequential search?
What are the different rules of SORT operation?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What guidelines should be followed to write a structured cobol prgm?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the usage of comp fields in cobol?
What is the difference between comp and comp-3?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the local-storage section?