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...

write a program to eliminate duplicate records in a input file
and send them to output file.THIS IS IGATE RECENT
QUESTIONN.....JUST 1 WEEK BACKKKK...

Answer Posted / kumarmf2004

Step1. Make sure that the input is sorted on the field
you are validating as duplicates (IN-FIELD in this
case)
Step2. In your program
IF IN-FIELD = HOLD-FIELD
CONTINUE
ELSE
WRITE OUTREC
MOVE IN-FIELD TO HOLD-FIELD
END-IF
READ IN-FILE

Keep performing Step 2 until end of file

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name some of the examples of COBOl 11?

3143


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1435


What is an in line perform? When would you use it? Anything else you wish to say about it.

1076


how do you reference the variable unblock file formats from cobol programs

1328


For rewrite, why is it mandatory that file needs to be opened?

1109


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

2488


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

1126


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

2011


What is cobol?

1238


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?

2585


What is rmode(any) ?

1268


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1242


What is a report item?

1143


What kind of error is trapped by on size error option?

1245


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2375