Proc sort procedure now with additional options
Page 1 of 1 • Share •
Proc sort procedure now with additional options
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
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

» how to sort date in selenium
» Pendaflex Sort It Out Giveaway *1 day canada and usa only*
» Pendaflex Sort It Out Giveaway *canada and usa only*
» Stimpath procedure, anyone?
» Selenium server command options while starting server.
» Pendaflex Sort It Out Giveaway *1 day canada and usa only*
» Pendaflex Sort It Out Giveaway *canada and usa only*
» Stimpath procedure, anyone?
» Selenium server command options while starting server.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» SAS Enterprise Guide: Explore Data before you start Analysing
» Predictive Analytics
» Creating Frequency Report and Creating User Defined styles in SAS Add-In for Microsoft Office
» Prompted Reports in BI Dashboard
» Free SAS Webinar : Getting Started with SAS Hash Object
» Which SAS procedure changes the name of a permanent format for a variable stored in a SAS data set?
» What is written to SAS Log?
» SAS Portal and BI Dashboard: Customizing the Tabs