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

Which division and paragraphs are mandatory for a COBOL program?

712


In COBOL programming, what is PERFORM? What is VARYING?

672


Difference between array and sub-script ?

1169


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


Whats the difference between search & search ALL?

5271






What is an in line perform? When would you use it? Anything else you wish to say about it.

649


What is the difference between binary search and sequential search?

643


What are the different rules of SORT operation?

702


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

737


What guidelines should be followed to write a structured cobol prgm?

673


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054


What is the usage of comp fields in cobol?

660


What is the difference between comp and comp-3?

704


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1616


What is the local-storage section?

683