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 is the use of symbol // in jcl?

920


How jcl is used for testing batch programs?

718


List the different components of jcl statement?

691


How can the disposition of sysout datasets be set for an entire jobstream?

838


what are the statements that are not valid to be included in an include statement?

776






When output dataset space is required, what quantity categories are used?

826


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1929


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

645


what is use of disp parameter in dd statement?

661


List the different jcl statements that are not permitted in the procedures?

638


How is a type of file defined in the jcl that executes the cobol program?

712


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2099


How do you create a temporary dataset?

662


What is the function of job statement in jcl?

636


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

938