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
What parameter directs the output of the job log dataset?
how can you check if a file is empty using jcl?
what is DD statement is used in JCL?
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?
What is the significance of addrspc parameter in the exec statement?
how JCL works?
Is it possible to left uncode disp?
Are there any set of rules for the names of the steps used in a job?
Explain the function of a dd statement?
a dd statement has 2 types of parameters. Name them?
What is use of restart and how to use it?
which parameter is used to check the syntax of a jcl without executing it?
What is the function of job statement in jcl?
Name what parameter directs the output of the job log dataset?
What are the parameter we cannot use in procedure?