If we want to see the eliminated duplicate record thru
SORT, how its output file will be managed

Answer Posted / mahaveer

//SORTXSUM DD DSN=datasetname,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FBM,LERCL=80,BLKSIZE=800)
.
.
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE,XSUM
/*

We can see the eliminated duplicate records in sortxsum

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which dd parameters are required?

686


What is the function of job statement in jcl?

635


if the submitter of a job wants to inform another user about the job completion, how can it be done?

754


How does jcl act on a cobol code?

655


How to override loadlib?

1417






how to do automated restart when a job abends?

843


whats the diff bw the evaluate also and and?

1850


What is use of restart and how to use it?

766


how you can access an uncataloged dataset in a JCL?

650


Define concatenating?

663


Describe the various parameters utilized in the creation of a gdg?

680


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1947


How jcl is used for testing batch programs?

717


a dd statement has 2 types of parameters. Name them?

643


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

922