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


Please Help Members By Posting Answers For Below Questions

What is the function of dd name parameter with a 2 part structure; audit.report?

698


which utility is used to sort a file in jcl?

745


Where can program checkpoints be stored for use in a restart?

843


What is condition checking in jcl? Is this possible?

624


How can values be passed from the job stream to an executable program?

869






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' ?

1579


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

743


which utility is used to run a cobol-db2 program?

807


Explain the function of the dd dcb keyword?

697


what is the use of IEBGENER utility?

654


What is the syntax of JCL statement?

692


What is the function of the dd avgrec keyword in sms datasets?

836


How to submit a jcl from cics?

658


define cond parameter in jcl?

771


What is the purpose of the dd keylen parameter?

718