I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
Answer Posted / ak
1.copy the file into array
2.read the file entil eof
3.if file-key equals to ws-arry-key(Count)
move ws-arry-key(count) to ws-dup-rec(for duplicate values)
else continue
write ws-arry-key
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different rules to perform a Search?
How do you get the data to code the BMS macro?
Which Search verb is equivalent to PERFORM…VARYING?
What rules are to be followed while using the corresponding options?
What is the difference between binary search and sequential search?
What is the usage of comp fields in cobol?
how do you reference the ksds vsam file formats from cobol programs
How do you reference the fixed block file formats from cobol programs
Can a Search can be done on a table with or without Index?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How to print 10 to 1 if the input have only 10 digit number?
Explain how you can characterize tables in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?