How to find the number of duplicates in a file using Sort?
Answer Posted / prachi
In order to copy eliminated duplicates into another file
using sort is as below:
//SORTXSUM DD DSN=----
:
:
:
:
//SYSIN DD *
SORT FIELDS = copy
SUM FIELDS =NONE,XSUM
/*
//
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
What does a disposition of (MOD,DELETE,DELETE) mean ?
What is use of restart and how to use it?
whats the diff bw the evaluate also and and?
Where can program checkpoints be stored for use in a restart?
What is the function of the dd avgrec keyword in sms datasets?
Why include statement is used in a jcl?
what is the JCL statement consists of?
What happens if both JOBLIB & STEPLIB is specified ?
What is the purpose of the dd keylen parameter?
What is the maximum length of a single line of jcl?
How to submit jcl through a cobol program?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
what is “Cond= even” and “Cond=only”?
Describe the various parameters utilized in the creation of a gdg?
which utility is used to run a cobol-db2 program?