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
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
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?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
State the various causes of s0c1, s0c5 and s0c7.
How do you get the data to code the BMS macro?
Name the sections present in data division.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
how do you reference the variable unblock file formats from cobol programs
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How many bytes S(8) comp field occupy and its maximum value?
) how do u code after getting data?
What are the pertinent COBOL commands?
How you can characterize tables in cobol?