IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Duplicate elimination- Using SUM fields.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hemamalini Vasudevan

New User


Joined: 21 Sep 2006
Posts: 5

PostPosted: Thu Sep 21, 2006 5:16 pm
Reply with quote

When using SUM FIELDS=(none) OR (Some field from the layout),
the duplicate records will get eliminated. Which record will get eliminated the first record or the second record found (as both are same ). I tried testing and found both the scenario happening. If i want to retain the first record and eliminate the second what exactly to be done.
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Thu Sep 21, 2006 6:17 pm
Reply with quote

When used in conjunction with SUM, EQUALS indicates which of the equal-keyed records will be preserved, containing the sum: the record occurring first in SORTIN (for a sort), or drawn from the SORTINnn data set with the lowest nn number (for a merge) will contain the totaled fields.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Sep 21, 2006 9:41 pm
Reply with quote

With EQUALS in effect, the first record for each set of duplicates is kept. With NOEQUALS in effect, any record of each set of duplicates can be kept.

Note that with the SELECT operator of DFSORT's ICETOOL, you can choose to have the FIRST or LAST record kept.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Duplicate data in PUT CONTAINER using... CICS 4
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
Search our Forums:

Back to Top