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
Is condition checking possible in jcl? If yes, how?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Name the statement which can be used to send data to another mvs jes3 node?
Explain dfsort utility?
how JCL works?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
What do you understand by the term job time – out and how can you overcome that?
For what purpose steplib and joblib are used ?
Mention the types of job control statements?
What is the function of //jcllib statement?
what is use of dcb parameter in dd statement?
What is the use of symbol // in jcl?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What are the difference between jcl and jes?
which parameter is used to check the syntax of a jcl without executing it?