I have 3 duplicate records in a file .
I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

Answer Posted / vignesh1988i

so , first sort the PS using JCL SORT utility and update the
PS file.
find the duplicates using XSUM . and write the duplicates
alone in a seperate PS.
take the seperate PS and give the control condition inside
SYSIN DD * as , sort fields with skiprec(3), since u need
only the 3rd one to copy

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What parameter directs the output of the job log dataset?

753


how can you check if a file is empty using jcl?

800


what is DD statement is used in JCL?

669


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?

771


What is the significance of addrspc parameter in the exec statement?

610






how JCL works?

785


Is it possible to left uncode disp?

701


Are there any set of rules for the names of the steps used in a job?

623


Explain the function of a dd statement?

647


a dd statement has 2 types of parameters. Name them?

631


What is use of restart and how to use it?

754


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

789


What is the function of job statement in jcl?

626


Name what parameter directs the output of the job log dataset?

551


What are the parameter we cannot use in procedure?

627