How to retain the Duplicates in the one records?
Answers were Sorted based on User's Feedback
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 |
Answer / tv
The question is want to retain duplicates. So sum
fields=none shouldn't be used in SORTing.
| Is This Answer Correct ? | 1 Yes | 2 No |
What is the difference between a binary search and a sequential search?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
How to concatenation one or more string?
which is better comp or comp-3 in terms of memory utilization?
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
can i use multiple when statements in search & search all ? justify ur answer?
What is ASKTIME, SUSPEND
A table has two indexes defined. Which one will be used by the SEARCH?
In the JCL, how do you define the files referred to in a subroutine ?
I got user abend U4038 while compiling my runjcl.. can anyone help me?