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

waht is inspect verb? where it can be in real time?

1 Answers   Patni,


What are declaratives and what are their uses in cobol?

0 Answers  


Explain how to differentiate call by context by comparing it to other calls?

0 Answers  


when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible

1 Answers   Patni,


What is a SSRANGE and NOSSRANGE?

0 Answers  






What is SSRANGE, NOSSRANGE ?

5 Answers  


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code

3 Answers  


consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above

3 Answers   TCS,


What is the usage of comp fields in cobol?

0 Answers  


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


Categories