Epoch
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Keywords

Latest topics
» SAS Macro: Convert numbers (e.g., 1000) to names (e.g., One thousand)
Proc sort procedure now with additional options EmptyMon Jun 10, 2013 2:57 pm by Admin

» SAS Enterprise Guide: Explore Data before you start Analysing
Proc sort procedure now with additional options EmptyMon Jun 10, 2013 2:53 pm by Admin

» Predictive Analytics
Proc sort procedure now with additional options EmptyFri May 31, 2013 3:30 pm by Admin

» Creating Frequency Report and Creating User Defined styles in SAS Add-In for Microsoft Office
Proc sort procedure now with additional options EmptyTue Oct 23, 2012 2:11 pm by pallav

» Prompted Reports in BI Dashboard
Proc sort procedure now with additional options EmptyThu Oct 11, 2012 4:54 pm by kushal

» Free SAS Webinar : Getting Started with SAS Hash Object
Proc sort procedure now with additional options EmptyWed Oct 10, 2012 6:08 pm by pallav

» Which SAS procedure changes the name of a permanent format for a variable stored in a SAS data set?
Proc sort procedure now with additional options EmptyTue Oct 02, 2012 12:47 am by rajin_kumar@yahoo.com

» What is written to SAS Log?
Proc sort procedure now with additional options EmptyTue Oct 02, 2012 12:39 am by rajin_kumar@yahoo.com

» SAS Portal and BI Dashboard: Customizing the Tabs
Proc sort procedure now with additional options EmptyTue Oct 02, 2012 12:33 am by kushal

Affiliates
free forum


Proc sort procedure now with additional options

Go down

Proc sort procedure now with additional options Empty Proc sort procedure now with additional options

Post  pallav Mon Mar 26, 2012 2:51 pm

Every one might be aware that till SAS 9.2 we were able to remove the duplicate observations or duplicate records with PROC SORT procedure using options like NODUPKEYS or NODUPS.


Now in SAS 9.3 addition options are available like

NOUNIQUEKEY

checks for and eliminates observations from the output data set that have a unique sort key. A sort key is unique when the observation containing the key is the only observation within a BY group. An observation has a unique sort key when it is the only observation within a BY group.


NOUNIQUEREC

checks for and eliminates observations from the output data set that are adjacently unique. PROC SORT only writes to the output data set observations that it determines are not unique. For example, during output, observation B is compared to observation A that precedes it and then to observation C that follows it. If observation B has variable values that differ from observation A’s or observation C’s variable values, then observation B is considered unique and is not written to the output data set.
When the UNIQUEOUT= option is specified with NOUNIQUEREC, then unique observations are written to the data set specified by the UNIQUEOUT= option.

For more information

CLICK HERE

pallav

Posts : 98
Join date : 2012-03-14
Location : Ahmedabad

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum