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

Answers were Sorted based on User's Feedback



write a program to eliminate duplicate records in a input file and send them to output file.THIS I..

Answer / khasim

In Answer2 just i am editing one line to make 100% correct

SUM FIELDS=NONE,XSUM

then it will store duplicates into dataset.

Is This Answer Correct ?    10 Yes 0 No

write a program to eliminate duplicate records in a input file and send them to output file.THIS I..

Answer / shan

We can use JCL SORT utility using SYSIN DD * SUM fields =
none, will eliminate duplicate and store in a different dataset.


e.g
//SORTXSUM DD DSN=... Output eliminated by the SUM stm

//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE
/*

Is This Answer Correct ?    11 Yes 2 No

write a program to eliminate duplicate records in a input file and send them to output file.THIS I..

Answer / 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

write a program to eliminate duplicate records in a input file and send them to output file.THIS I..

Answer / deepak kumar

sort fields=copy
sum fields=none

Is This Answer Correct ?    4 Yes 0 No

write a program to eliminate duplicate records in a input file and send them to output file.THIS I..

Answer / a

How to eliminate duplicate without using second file

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


What are the cobol coding sheets?

0 Answers  


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,


I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?

6 Answers   IBM,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10

4 Answers   TCS,


What are the various section in data division and briefly explain them.

0 Answers  


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

5 Answers   HCL,


diffrence between z(2) and z9(2)

4 Answers   Cap Gemini,


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


Categories