i have a file which contains duplicates ? my requirement is to
eliminate duplicates and these elminated duplicates should be
moved to another file can any code this using sort ?

Answer Posted / snehatechm

But which duplicate record will be found in SORTXSUM.
Will it have last duplicate record or first duplicate
record.

e,g 123acvvbbnm
123bbbbbbbb
123rkrjrjjr

which record will be found in sortxsum

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

729


What is jcl in mainframe?

833


Explain the purpose of dd dummy statement?

781


What do you understand by jcl?

713


what are JCLLIB and STEPLIB in JCL?

775






Explain the function of dd name parameter with a 2 part structure; audit.report?

1030


What are s0c1, s0c4, s0c5, s0c7 and socb?

798


Explain about LMFREE�free data set from its association with data ID

1116


Explain how can a stopped job be started again?

742


what sort card you will use to copy the data from one dataset to another dataset?

836


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7255


Explain the function of //cntl statement?

747


Which dd parameters are required?

802


what is the use of JCL?

762


How can return codes be tested before execution of a job step?

1040