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
In sms datasets, what is the function of the dd avgrec keyword?
Explain the jcl exec statement?
How does jcl specify the job to the operating system?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
In sms datasets, what is the function of the dd mgmtclas keyword?
Explain the job statement in jcl?
Why include statement is used in a jcl?
How is a type of file defined in the jcl that executes the cobol program?
What is the format of comment statement?
What parameter of the job statement is used to limit the cpu time consumed by the job?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What does a disposition of (new,catlg,keep) for a dsn mean?
What are hierarchy levels in jcl?
how can the same proc be re-used and called by many jobs?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?