We are aware of eliminating the duplicate records from
outyput fiel using sort utility. Can we get the duplicate
records in to another file in the Same sort utility?
Answer Posted / sathya
we can get the duplicate records alone in the dataset using
sort utility.
//SORTTA EXEC
PGM=SORT
//SYSIN DD *
SORT FIELDS=(29,9,CH,A)
SUM FIELDS=NONE,XSUM
/*
//SORTIN DD DSN=…,DISP=SHR
//SORTOUT DD DSN=…
//SORTXSUM DD DSN=…
//SYSOUT DD
SYSOUT=*
//
The XSUM control statement is used to create
The output file with the duplicate records alone.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
When space is allocated for an output dataset, what units can be used?
What is the use of symbol // in jcl?
define cond parameter in jcl?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How do you submit a job for execution?
Can we call instream to catalog and catalog to instream?
What is the difference between the positional and keyword parameters? Give examples.
What does a disposition of (new,catlg,keep) for a dsn mean?
what is DSN in JCL and what are the parameters to declare the DSN?
What is the function of //jcllib statement?
Is acct parameter mandatory?
Define concatenating?
List the different components of jcl statement?
Explain the function of job statement in jcl?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?