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
Is condition checking possible in jcl?
Differentiate between the joblib and the steplib statements?
Explain the function of the steplib dd statement?
what is the resolution for sb37 error
what happens in execution stage in job processing?
how can the same proc be re-used and called by many jobs?
Explain how can the submitting users racf authority be overridden in a job stream?
Explain dfsort utility?
What are the 2 types of parameters in dd statement?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
Is it possible to define dd statements as you want?
What is one line to pass PARM from JCL to COBOL?
Explain the function of the dd dcb keyword?
Explain the function of //jcllib statement?
What is use of restart and how to use it?