I have a files containing both duplicate and non-duplicate
records.The file is already sorted by a key.I want to
determine those records that are duplicate and records that
are non-duplicate.If duplicate the record is move to a
duplicate file and if non-duplicate that will be move to
valid file.thank you

Answer Posted / kk

hi,
using sort its possible.
sum fields=none,xsum
matching record present in sortout.
non matching record present in xsum.
another type using file matching concept.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the problem of ordered sequential files access?

924


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9257


Which mode is used to operate the sequential file?

942


Are you comfortable in cobol or jcl?

820


What are different data types in cobol?

923


How do you reference the following file formats from cobol programs?

933


What type of SDLC u followed? Why?

1740


IF I mention stop run in CICS what happens?

2109


What do you understand by psb and acb?

858


Name the sections present in data division.

916


Write the code implementing the perform … varying.

827


explain sorting techniques in cobol program?

909


What are the different rules of SORT operation?

915


Have you used comp and comp-3 in your project? And how?

2222


What the difference is between continue and next sentence?

885