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


Please Help Members By Posting Answers For Below Questions

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

1184


Why block size is multiple of lrecl in jcl?

1108


How can a stopped job be started again?

898


Is it possible to left uncode disp? If yes, how?

894


How is a type of file defined in the jcl that executes the cobol program?

901






Is it possible to code instream data in a PROC?

959


Name a few IBM utility programs, and explain its function.

4672


which parameter is used to check the syntax of a jcl without executing it?

1023


How can return codes be tested before execution of a job step?

1162


Explain how can the disposition of sysout datasets be set for an entire jobstream?

827


Explain in DD statement what is the use of DCB parameter?

861


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1997


Explain about LMQUERY�give a dialog information about a data set

1087


What is the function of //cntl statement?

1043


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?

1013