how to eliminate the duplicates in sorting
Answer Posted / muttaiah
use the Sort utility, In the instream data of the sort card
Specify.
//sysin dd *
sort fields=copy
sum fields=none,xsum
/*
for this you need to have a dd stmt as
//sortxsum dd dsn=datasetname, disp=(createnew, share)
Now, the output file will have the records without
duplicates & the duplicates will be captured in the above
dsn of the sortxsum dd.
Correct me if i'm wrong
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
what is a jcl?
A dd statement consists of 4 fields. Name them?
What is the function of job statement in jcl?
Why include statement is used in a jcl?
What do you understand by the term job time – out and how can you overcome that?
How can the submitting users racf authority be overridden in a job stream?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
How can the attributes of one sms dataset be copied to another dataset?
What is the motivation behind coding class parameter in job statement?
i want to store 20 digits . how will u do it in cobol ?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Explain dfsort utility?
What is the use of symbol // in jcl?
Why block size is multiple of lrecl in jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?