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
How to remove 2 duplicate records and copy only one using job control language?
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?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
i want a program using by if, evaluate , string, unstring, perform, occurs?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What are 77 levels used for?
What are the cobol coding sheets?
How are the next sentence and continue different from each other?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the use of intialize verb?
Difference between cobol and cobol-ii?
how can i see junk values in dclgen or in hostvariable of comp ?
Whats the difference between search & search ALL?
What is Pic 9v99 Indicates in COBOL?