write a program to eliminate duplicate records in a input file
and send them to output file.
Answer Posted / 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 |
Post New Answer View All Answers
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is comp-1 and comp-2?
What is the difference between comp and comp-3 usage?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What the difference is between continue and next sentence?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are all the divisions of a COBOL program?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Which is not true about evaluate statement
Write a program that uses move corresponding.
How do you define a variable of comp-1 and comp-2?
Write the code to count the sum of n natural numbers.
What are the different data types in cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?