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

Differentiate between structured cobol programming and object-oriented cobol programming.

669


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

702


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

650


How to print 10 to 1 if the input have only 10 digit number?

813


Write a cobol program making use of the redefine clause.

739






how do you reference the printer file formats from cobol programs

667


what is difference between cobol and cobol/400

21570


What is the difference between goback, stop run and exit program in cobol?

932


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1876


Can a Search can be done on a table with or without Index?

806


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


Explain about different table spaces.

650


How do you define a variable of comp-1 and comp-2?

707


How do u write test cases?

1640


What rules are followed by the search verb.

638