How to find the number of duplicates in a file using Sort?

Answer Posted / sudha

//
//
//
//sysin dd *
sort fields=(1,4,ch,a)
sum fields=none/all
/*
for avoiding duplicates

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what operation is performed by job statement?

663


what is SOC4 error?

740


What is NOTCAT ?

742


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

941


What is the function of the steplib dd statement?

744






what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

779


What are steplib and joblib? What for they are used?

697


Is automatic restart possible in jcl? If yes, how?

659


Why block size is multiple of lrecl in jcl?

915


which utility is used to sort a file in jcl?

750


List in order the hierarchical levels of jcl?

672


How jcl work to handle various input output file operations?

660


What is the purpose of dd dummy statement?

949


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1805


in ways data can be passed to a COBOL program from JCL?

670