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
Why did you choose to work with ibm mainframe cobol programming?
In which area will you utilize 88 level items in cobol?
Name the sections present in data division.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how can i see junk values in dclgen or in hostvariable of comp ?
how to convert the recors form vsam file to db2 table tru file aid
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are 77 levels used for?
Write some characteristics of cobol as means of business language.
i want a program using by if, evaluate , string, unstring, perform, occurs?
) How do u handle errors in BMS macro?
Explain how you can characterize tables in cobol?
What kind of error is trapped by on size error option?
What are the different rules to perform a Search?
What is the difference between external and global variables in COBOL?