MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

removing duplicates

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
madisand
Beginner


Joined: 29 Aug 2005
Posts: 19
Topics: 7

PostPosted: Fri Sep 16, 2005 6:38 am    Post subject: removing duplicates Reply with quote

Hi

I want to sort a file considering all the fields in it (it include alphanumeric, ZD,PD etc & is 4043 byte length long) & eliminate duplicates . Is there any tip by which I can avoid coding in the control card all the sort fields
& in one shot remove duplicates

Thanks
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Sep 16, 2005 6:50 am    Post subject: Reply with quote

madisand,

You don't have to code all the fields in your sort card. You can either use CH or BI as the SORT format, for all fields. There is no need to differentiate them as ZD/PD - for your case.

CH and BI formats support upto 4092 characters for SORT - Max length.

Use this
Code:

 SORT FIELDS=(1,4043,BI,A)


Thanks,
Phantom
Back to top
View user's profile Send private message
madisand
Beginner


Joined: 29 Aug 2005
Posts: 19
Topics: 7

PostPosted: Fri Sep 16, 2005 7:51 am    Post subject: Reply with quote

Thanks Phantom,

It worked. I tried with CH option. Due to time constraints couldn't try with BI option & will do it once I get a chance.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Sep 22, 2005 6:44 pm    Post subject: Reply with quote

One caveat: CH/BI will only work for ZD/PD in this case if the positive values all have the same sign (e.g. all F signs or all C signs). It will not work if they have mixed signs (e.g. some have F signs and some have C signs). Admittedly, mixed signs are not commonly used, but they're also not unheard of.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Sep 23, 2005 12:33 am    Post subject: Reply with quote

Thanks for the info. Frank. Never heard of a situation like this. But I will definitely keep this in mind if I come across another post like this.

Thanks,
Phantom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group