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

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

Answer / naidu sekhar yandrapu

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 , XSUM
/*

Is This Answer Correct ?    1 Yes 0 No

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

Answer / ehatesham

//SORTXSUM DD DSN=datasetname,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
.
.
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE,XSUM
/*

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

what is difference between cobol and cobol/400

1 Answers   HCL,


What is difference between comp & comp-4?

6 Answers  


What are differences between Static Call and Dynamic Call?

10 Answers   IBM, KBC, Keane India Ltd, Verizon,


Which Search verb is equivalent to PERFORM…VARYING?

0 Answers  


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  






Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,


2)Where the Plan is located in CICS-DB2?

1 Answers   IBM,


How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

2 Answers   IBM,


What is SDSF?

13 Answers   IBM,


how to display comp3 variables reply soon ?

4 Answers   Patni,


I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..

2 Answers   EDS,


Categories