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

SUM fields = none statement deletes the first or last record


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

New User


Joined: 09 Nov 2006
Posts: 2

PostPosted: Thu Nov 09, 2006 6:21 pm
Reply with quote

Hello,

Can anyone tell me if the 'sum fields=none' statement deletes the first or the second record when it encounters two duplicate records?

thx in advance,

Bart
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: Mon Nov 13, 2006 11:04 pm
Reply with quote

If EQUALS is in effect, DFSORT will keep the first record. If NOEQUALS is in effect, DFSORT can keep either record. You can specify EQUALS like this:

Code:

//DFSPARM DD *
   OPTION EQUALS
/*


You can use the SELECT operator of DFSORT's ICETOOL with the FIRST or LAST operand to tell DFSORT to keep the first or last record, respectively.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
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 How to split large record length file... DFSORT/ICETOOL 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top