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 is the difference between comp and comp-3 usage?
How arrays can be defined in COBOL?
What is perform what is varying?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Which division and paragraphs are mandatory for a COBOL program?
What are the various section in data division and briefly explain them.
For rewrite, why is it mandatory that file needs to be opened?
What are the different rules to perform a Search?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
how do you reference the fixed unblock file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is comp-1 and comp-2?
) How do u handle errors in BMS macro
IF I mention stop run in CICS what happens?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?