Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Removing duplicates using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Hari Kumar

New User


Joined: 28 Jul 2005
Posts: 19

PostPosted: Tue Dec 12, 2006 1:46 pm    Post subject: Removing duplicates using DFSORT
Reply with quote

Hi,

In DFSORT, if there is any duplicate record found then i have to eliminate both the records. what is the command ??

I know in ICETOOL we can use NODUP. I need DFSORT command.
Back to top
View user's profile Send private message

prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Tue Dec 12, 2006 3:33 pm    Post subject:
Reply with quote

in sort card use ,
SUM FIELDS=NONE
after sort
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Dec 12, 2006 3:40 pm    Post subject:
Reply with quote

Hey prafull,

It would not eliminate both the records it will keep one record .
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Tue Dec 12, 2006 9:52 pm    Post subject:
Reply with quote

Quote:
I know in ICETOOL we can use NODUP. I need DFSORT command.


SELECT with NODUPS will do that. I don't understand why you need a DFSORT command rather than a DFSORT/ICETOOL command. If you have DFSORT, then you have DFSORT's ICETOOL. Your site's payment for DFSORT covers the exta functions available with ICETOOL (which has been avaiilable with DFSORT since 1991), so why not use it?

Quote:
in sort card use ,
SUM FIELDS=NONE
after sort


SUM FIELDS=NONE is equivalent to SELECT with FIRST. All of the other functions supported by DFSORT's ICETOOL (NODUPS, ALLDUPS, FIRSTDUP, LASTDUP, etc) cannot be done with SUM FIELDS=NONE.
Back to top
View user's profile Send private message
Hari Kumar

New User


Joined: 28 Jul 2005
Posts: 19

PostPosted: Thu Dec 14, 2006 3:53 pm    Post subject:
Reply with quote

Thanks lot for your information. I am using NODUPS option.

Regards,
Hari
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us