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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

929


In COBOL, what is the different between index and subscript?

945


What is the difference between PIC 9.99 and 9v99 in COBOL?

972


Can a Search can be done on a table with or without Index?

1048


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

2205


How do define dynamic array in cobol.

857


example for sub strings ? and refernce modifications whit output pls

2068


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2006


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

866


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

905


How do you differentiate between cobol and cobol-ii?

857


What is perform what is varying?

916


What are the different rules for performing sort operation?

957


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1884


Name the divisions, which are available in a cobol program?

925