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
i want to store 20 digits . how will u do it in cobol ?
What is Cataloged Procedures?
What is the motivation behind coding class parameter in job statement?
Mention the types of job control statements?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
List the various advantages of using jcl language?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
can any one plzzzzzz tell the jcl code for creating ps using idcams
What is the use of symbol // in jcl?
What is timing concept in mainframe?
Explain about ISPF/TSO Commands
What is the function of //cntl statement?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How to do automated restart when a job abend?
what is use of disp parameter in dd statement?