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
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
Why block size is multiple of lrecl in jcl?
How can a stopped job be started again?
Is it possible to left uncode disp? If yes, how?
How is a type of file defined in the jcl that executes the cobol program?
Is it possible to code instream data in a PROC?
Name a few IBM utility programs, and explain its function.
which parameter is used to check the syntax of a jcl without executing it?
How can return codes be tested before execution of a job step?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Explain in DD statement what is the use of DCB parameter?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Explain about LMQUERY�give a dialog information about a data set
What is the function of //cntl statement?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?