COuld you please let me know along with a sample on how are
you going to remove duplicates from the file that is being
read.

Thanks
Sam

Answer Posted / nitin

steps are as below
1. file should be in sorted order
2. you can use either at break statement on the descriptor
and then do the validation or you can used desctiptor field
for comparison of secod record and first record, if the
descriptor values are same then escape top

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define cobol coding sheet?

566


The natural file converted to PDF file if Yes then explain ?

2651


Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?

592


Explain how to find occurrence of mu and pe fields in a file?

496


Explain the like inverted list?

539






Explain the difference between external subroutine and subprogram?

610


What is the quality process in development?

569


Can we see the copy book length using file-aid?

494


In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?

1437


How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

607


How to find occurrence of mu and pe fields in a file?

486


How to receive data passed through jcl parm parameter in a natural program?

555


What is a hyperdescriptor? How does it work?

629


How are you going to remove duplicates from the file that is being read?

540


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

591