Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / brian

Sort the file in ascending order of your duplicated fields.
You can write a COBOL module to read the file sequentially.
Set up a dup-counter in Working Storage. Set up a group of
fields in Working Storage to hold duplicated fields. They
should be similar to what you are sorting on. Save each
records read fields after reading it. When you read the
current record compare it to the saved fields. If they
match add to your dup-counter. If they don't match zero
out your counter. After adding to your counter check the
value. If > 1 you have a 3rd duplicate. Write that record
to a duplicate output file. Hope I'm close to getting you
an answer.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the JCL statement consists of?

1252


What is the maximum length of a single line of jcl?

1397


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

1524


How to execute 2nd and 4th steps among 5 steps in jcl proc?

1400


How can a fb file convert to vb file using sort program?

1387


Differentiate between the joblib and the steplib statements?

1512


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1279


what is the use of IEBGENER utility?

1223


what is the compile process of cobol program expalin with code

2639


Explain how can return codes be tested before execution of a job step?

1371


Can we call instream to catalog and catalog to instream?

1186


Which dd parameters are required?

1242


How to submit a jcl from cics?

1200


How does jcl act on a cobol code?

1233


whats the diff bw the evaluate also and and?

2414