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
Which statement is used to identify the private libraries in job?
in ways data can be passed to a COBOL program from JCL?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Is condition checking possible in jcl? If yes, how?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What dd statement is used to supply the name of a dataset?
What is the significance of addrspc parameter in the exec statement?
what is the resolution for sb37 error
how you will the direct the data to spool using sysout option?
What is notcat 2 - gs?
How is a type of file defined in the jcl that executes the cobol program?
How to alter the parameters for the existing gdg?
How can an in-stream dataset be terminated?
Explain dd statement in jcl?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?