How to retain the Duplicates in the one records?
Answer Posted / kk
Hi,
Using sort Utilities,
some fields=None,xsum
//STEP010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=TEST.XSUM.INPUT,DISP=SHR
//SORTOUT DD DSN=TEST.XSUM.OUTPUT,DISP=SHR
//SORTXSUM DD DSN=TEST.XSUM.OUTPUT.XSUM,DISP=SHR
//SYSIN DD *
SORT FIELDS=(2,10,CH,A)
SUM FIELDS=NONE,XSUM
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What rules are followed by the search verb.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is cobol?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
How many sections are there in data division in COBOL?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How can you get the ksds file records into your cobol program?
What are the different rules for performing sort operation?
how do you reference the variable block file formats from cobol programs
What is perform what is varying?
What are the rules of the move verb?
what is search and searchall?what is the diffrence between them?give an best example?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?