If we want to see the eliminated duplicate record thru
SORT, how its output file will be managed
Answer Posted / atreyee
//STEP1 EXEC PGM=SYNCSORT
//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR
//SORTIN DD DSN=SORT.IN,DISP=SHR
//SORTOUT DD DSN=SORT.OUT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,SPACE=(CYL,(1,10),RLSE),
//
// DCB=(*.SORTIN)
//SORTXSUM DD DSN=SORT.OUT.DUPLICATE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,
// SPACE=(CYL,(1,10),RLSE),
// DCB=(*.SORTIN)
//SYSIN DD *
//SYSOUT DD SYSOUT=*
SORT FIELDS=(1,5,CH,A)
SUM FIELDS=NONE,XSUM
//SYSPRINT DD SYSOUT=*
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What is the function of dd disp parameter?
what is use of dcb parameter in dd statement?
What is the use of symbol // in jcl?
How to submit jcl through a cobol program?
Name what parameter directs the output of the job log dataset?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
which utility is used to run a cobol-db2 program?
What is the difference between the positional and keyword parameters? Give examples.
How can the submitting users racf authority be overridden in a job stream?
What is the function of the steplib dd statement?
I need exexution process for JCL programs
Can an individual step be restricted from using all the jobs allowed cpu time?
What is the function of dd name parameter with a 2 part structure; audit.report?
How to pass data to a program that is coded in an exec statement?