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


Please Help Members By Posting Answers For Below Questions

Name the divisions, which are available in a cobol program?

679


Write a program to enter and display the names of students in a class using the occurs clause.

647


How do you reference the fixed block file formats from cobol programs

699


What is the difference between comp and comp-3 usage?

672


How many sections are there in data division in COBOL?

676






Describe the cobol database components?

674


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2093


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

672


What are the rules of the move verb?

699


How to remove 2 duplicate records and copy only one using job control language?

734


Define static linking and dynamic linking.

658


What rules are followed by the search verb.

631


what is search and searchall?what is the diffrence between them?give an best example?

5538


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718


In which area will you utilize 88 level items in cobol?

710