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
What is the purpose of the dd keylen parameter?
Which statement is used to identify the private libraries in job?
what are the statements that are not valid to be included in an include statement?
Explain dd statement in jcl?
How can an in-stream dataset be terminated?
what sort card you will use to copy the data from one dataset to another dataset?
Is it possible to left uncode disp?
What do you understand by the term job time – out and how can you overcome that?
What do you know about jcl?
when does a dataset go uncataloged?
How dummy is used in jcl?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
What are the parameter we cannot use in procedure?