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

Is there any command to check wether the ps file is in sorted order?

2428


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 ?

9215


Where can program checkpoints be stored for use in a restart?

844


can any one plzzzzzz tell the jcl code for creating ps using idcams

10511


What is catelog procedure and how many catelog procedure to use in one job?

7444






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

798


State the uses of syspring, sysin, sort fields, sum fields and dummy.

647


what is the use of IEBGENER utility?

655


Can I send output of job to my remote device careerride123?

666


In job processing, what happens in conversion stage?

738


what is DSN parameter and DISP parameter is used for?

674


how you will the direct the data to spool using sysout option?

1762


how would you create a temporary dataset? And where will you use them?

768


Explain the function of job statement in jcl?

647


Explain how can a stopped job be started again?

636