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
what is DD statement is used in JCL?
a dd statement has 2 types of parameters. Name them?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What is notcat 2 - gs?
What is the format of comment statement?
What is timing concept in mainframe?
What is the motivation behind coding class parameter in job statement?
What is the function of the dd mgmtclas keyword in sms datasets?
Can we use DISP=SHR in output file in JCL
In job processing, what happens in conversion stage?
Which statement is used to identify the private libraries in job?
What are s0c1, s0c4, s0c5, s0c7 and socb?
What is the function of a dd statement?
Is there any command to check wether the ps file is in sorted order?
what is the purpose of coding notify parameter in job statement?