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 is the difference between binary search and sequential search?
how do you reference the variable block file formats from cobol programs
What are the different open modes available in cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Describe the cobol database components?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How to remove 2 duplicate records and copy only one using job control language?
What is the usage of comp fields in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is static and dynamic call in cobol?
Write a program to explain size error.
) How do u handle errors in BMS macro?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Why did you choose to work with ibm mainframe cobol programming?
Are you comfortable in cobol or jcl?