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

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

733


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

693


Where & How Do You Code Identifier In Jcl?

680


What are the 4 fields in dd statement?

726


what are the types of abends that occur on job failure? And explain the possible causes of these

1106






define cond parameter in jcl?

757


Explain in DD statement what is the use of DCB parameter?

637


Define concatenating?

651


How would you understand error(execution phase)?

613


Explain about ISPF/TSO Commands

1297


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

273


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

789


What is the motivation behind coding class parameter in job statement?

669


how to run batch program without jcl?

10033


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?

8636