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

What is link edit in cobol?

1158


What are the different open modes available in cobol?

1153


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17807


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

1039


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

2172


What is the compute verb? How is it used?

1087


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9029


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1099


Write a program to explain size error.

1153


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1046


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

1179


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

1224


What is the difference between Global and External Variables?

1313


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

1126


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1114