how to eliminate the duplicates in sorting

Answer Posted / seema dawlekar

WE CAN ELIMINATE DUPLICATES IN SORTING BY SORT UTILITY
SYNTAX IS
SORT FIELDS=(STARTING POSITING,LENGTH,TYPE,A),EQUALS
SUM FIELDS=NONE

THIS WILL SORT THE FIELDS IN ASCENDING ORDER AND ELIMINATES
ALL THE DUPLICATES, AS WE ARE GIVING 'EQUALS' IT WILL TAKE
THE FIRST RECORD AND ELIMINATES REST OF THE DUPLICATE
RECORDS IN A FILE.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1938


how to run batch program without jcl?

10058


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

635


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

823


What is the purpose of dd * statement in jcl?

793






define cond parameter in jcl?

767


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1958


I need exexution process for JCL programs

1843


how JCL works?

793


how do you code a null statement?

768


Is automatic restart possible in jcl?

724


What is the function of a dd statement?

700


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

705


How can a fb file convert to vb file using sort program?

800


what is use of dcb parameter in dd statement?

765