<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: proc sort with nonduprecs does not work with data = ds(keep=) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727582#M226319</link>
    <description>sweet, thanks!</description>
    <pubDate>Thu, 18 Mar 2021 21:46:34 GMT</pubDate>
    <dc:creator>elolvido</dc:creator>
    <dc:date>2021-03-18T21:46:34Z</dc:date>
    <item>
      <title>proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526100#M143198</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find the non duplicated rows of certain columns from a data set using proc sort.&lt;/P&gt;&lt;P&gt;For example, finding the unique combination of MAKE, TYPE, and ORIGIN in &lt;SPAN&gt;sashelp.&lt;/SPAN&gt;cars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.cars (keep=MAKE TYPE ORIGIN) out=dsout noduprec;&lt;BR /&gt;by MAKE TYPE;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the resulting data set still contains duplicated rows.&lt;/P&gt;&lt;P&gt;Can anyone explain to me why my code doesn't work as expect?&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526100#M143198</guid>
      <dc:creator>skcussas</dc:creator>
      <dc:date>2019-01-10T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526103#M143200</link>
      <description>&lt;P&gt;Try adding origin to your by statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars (keep=MAKE TYPE ORIGIN) out=dsout noduprec;
by MAKE TYPE ORIGIN;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526103#M143200</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T16:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526104#M143201</link>
      <description>&lt;P&gt;Nodupkey works&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars (keep=MAKE TYPE ORIGIN) out=dsout nodupkey;
by MAKE TYPE ORIGIN;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526104#M143201</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T16:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526105#M143202</link>
      <description>Your data has to be sorted twice for NODUPREC to work correctly - it only removes duplicates in order. It's an annoying feature, I thought they'd actually removed it. Otherwise, you can use NODUPKEY to remove duplicates. &lt;BR /&gt;&lt;BR /&gt;This is a common gotcha with NODUPRECS.</description>
      <pubDate>Thu, 10 Jan 2019 16:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526105#M143202</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-10T16:51:13Z</dc:date>
    </item>
    <item>
      <title>I still get duplicated rows with the modification you sug...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526106#M143203</link>
      <description>I still get duplicated rows with the modification you suggest&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526106#M143203</guid>
      <dc:creator>skcussas</dc:creator>
      <dc:date>2019-01-10T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526107#M143204</link>
      <description>&lt;P&gt;Looks like PROC SORT does not honor the KEEP the way one might expect.&amp;nbsp; You can use a view to get what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;182  proc sort data=sashelp.cars(keep=MAKE TYPE ORIGIN) out=dsout noduprec;
183     by MAKE TYPE;
184     run;

NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: 0 duplicate observations were deleted.
NOTE: The data set WORK.DSOUT has 428 observations and 3 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


185
186  data carsV / view=carsV;
187     set sashelp.cars(keep=MAKE TYPE ORIGIN);
188     run;

NOTE: DATA STEP view saved on file WORK.CARSV.
NOTE: A stored DATA STEP view cannot run under a different operating system.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


189  proc sort data=carsV out=dsout noduprec;
190     by MAKE TYPE;
191     run;

NOTE: There were 428 observations read from the data set WORK.CARSV.
NOTE: View WORK.CARSV.VIEW used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: 314 duplicate observations were deleted.
NOTE: The data set WORK.DSOUT has 114 observations and 3 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.03 seconds
      cpu time            0.01 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526107#M143204</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-01-10T16:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526108#M143205</link>
      <description>&lt;P&gt;For noduprecs to work, I am afraid you need a datastep as it's apparent keep= dataset option in the proc sort data= doesn;t compile as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So here's the work around&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
85   data w;
86   set sashelp.cars;
87   keep make type origin;
88   run;

NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: The data set WORK.W has 428 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds


89   proc sort data=w out=w1 noduprecs;
90   by _all_;
91   run;

NOTE: There were 428 observations read from the data set WORK.W.
NOTE: 314 duplicate observations were deleted.
NOTE: The data set WORK.W1 has 114 observations and 3 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526108#M143205</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526109#M143206</link>
      <description>&lt;P&gt;Guru , I honestly didn't see your message. Forgive me for the near duplicate message besides your view making it distinct. Sorry&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526109#M143206</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526110#M143207</link>
      <description>&lt;P&gt;NODUPREC is not included in the SAS 9.4 documentation for PROC SORT. I do believe it has been removed&amp;nbsp;due to this common issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was likely left in for backward compatibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p02bhn81rn4u64n1b6l00ftdnxge.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p02bhn81rn4u64n1b6l00ftdnxge.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the 9.2 version of the documentation, this behaviour is explicitly mentioned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="strong"&gt;NODUPRECS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A name="a001093931" target="_blank"&gt;&lt;/A&gt;checks for and eliminates duplicate observations. If you specify this option, then &lt;STRONG&gt;PROC SORT compares all variable values for each observation to the ones for the previous observation&lt;/STRONG&gt; that was written to the output data set. If an exact match is found, then the observation is not written to the output data set.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="strong"&gt;Note:&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;See NODUPKEY for information about eliminating observations with duplicate BY values.&amp;nbsp;&amp;nbsp;&lt;IMG src="https://support.sas.com/documentation/cdl/en/common/63294/HTML/default/images/cautend.gif" border="0" alt="[cautionend]" align="bottom" /&gt;&lt;/P&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Alias :&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;&lt;A name="a001093932" target="_blank"&gt;&lt;/A&gt;NODUP&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Interaction:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;&lt;A name="a001093933" target="_blank"&gt;&lt;/A&gt;When you are removing consecutive duplicate observations in the output data set with NODUPRECS, the choice of EQUALS or NOEQUALS can have an effect on which observations are removed.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Interaction:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;&lt;A name="a001093934" target="_blank"&gt;&lt;/A&gt;The action of NODUPRECS is directly related to the setting of the SORTDUP= system option. When SORTDUP= is set to LOGICAL, NODUPRECS removes duplicate observations based on the examination of the variables that remain after a DROP or KEEP operation on the input data set. Setting SORTDUP=LOGICAL increases the number of duplicate observations that are removed, because it eliminates variables before observation comparisons take place. Also, setting SORTDUP=LOGICAL can improve performance, because dropping variables before sorting reduces the amount of memory required to perform the sort. When SORTDUP= is set to PHYSICAL, NODUPRECS examines all variables in the data set, regardless of whether they have been kept or dropped. For more information about&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/a002256370.htm" target="_top"&gt;SORTDUP=&lt;/A&gt;, see the chapter on SAS system options in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strongEmph"&gt;SAS Language Reference: Dictionary&lt;/SPAN&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Interaction:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;In-database processing does not occur when the NODUPRECS option is specified. However, if the NODUPRECS and NODUPKEY options are specified, system option SQLGENERATION= set for in-database processing, and system option SORTPGM=BEST, the NODUPRECS option is ignored and in-database processing does occur.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Tip:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;Use the EQUALS option with the NODUPRECS option for consistent results in your output data sets.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Tip:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;&lt;A name="a001093935" target="_blank"&gt;&lt;/A&gt;&lt;FONT size="4"&gt;Because NODUPRECS checks only consecutive observations, some nonconsecutive duplicate observations might remain in the output data set. You can remove all duplicates with this option by sorting on all variables.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526110#M143207</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-10T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526111#M143208</link>
      <description>Thanks nodupkeys works!</description>
      <pubDate>Thu, 10 Jan 2019 16:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526111#M143208</guid>
      <dc:creator>skcussas</dc:creator>
      <dc:date>2019-01-10T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526116#M143212</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254461"&gt;@skcussas&lt;/a&gt;, Yes Nodupkey is the way and best is to avoid noduprecs at all times like Reeza pointed out. I was making that mistake too for a long time until&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;corrected me and made me learn the nit when we were having a discussion comparing nodupkey, select distinct and noduprecs in tandem. Hmm rings the bell &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Cheers from me&amp;nbsp; to Mark&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;noduprecs =&amp;nbsp; select distinct * &lt;U&gt;&lt;STRONG&gt;and not&lt;/STRONG&gt;&lt;/U&gt; select distinct make ,type, origin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which apparently means the from table should only have the vars making it distinct and cannot support dataset option at execution time for noduprecs to work. Well, well what a nit!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 17:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526116#M143212</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T17:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526174#M143247</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;noduprecs =&amp;nbsp; select distinct * &lt;U&gt;&lt;STRONG&gt;and not&lt;/STRONG&gt;&lt;/U&gt; select distinct make ,type, origin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which apparently means the from table should only have the vars making it distinct and cannot support dataset option at execution time for noduprecs to work. Well, well what a nit!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not quite, the order of the input data set matters a lot when using NODUPRECS, which is not intuitive. NODUPRECS only check the previous record, so if the data isn't sorted first it won't work either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is another way to get what the OP wants, with a double sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars (keep=MAKE TYPE ORIGIN) out=dsout;
by MAKE TYPE;
run;

proc sort data=dsout noduprec;
by MAKE TYPE;
run;

*want only 1;
proc freq data=dsout;
table make*type / list;
run;

*get only 1;
proc freq data=dsout;
table make*type*origin / list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/526174#M143247</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-10T19:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727229#M226134</link>
      <description>&lt;P&gt;I really hope they fix this.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 13:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727229#M226134</guid>
      <dc:creator>elolvido</dc:creator>
      <dc:date>2021-04-20T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727254#M226152</link>
      <description>NODUPRECS is not documented and not recommended. Use _ALL_ instead to sort by ALL and NODUPKEY.&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p02bhn81rn4u64n1b6l00ftdnxge.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p02bhn81rn4u64n1b6l00ftdnxge.htm&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Wed, 17 Mar 2021 21:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727254#M226152</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-17T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727582#M226319</link>
      <description>sweet, thanks!</description>
      <pubDate>Thu, 18 Mar 2021 21:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727582#M226319</guid>
      <dc:creator>elolvido</dc:creator>
      <dc:date>2021-03-18T21:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort with nonduprecs does not work with data = ds(keep=)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727609#M226333</link>
      <description>&lt;P&gt;I agree that option NODUPREC must be used carefully, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;show us is outlined in the documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issues of option KEEP= not working as expected, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;demonstrates, seems at odds with what this option is supposed to mean.&lt;/P&gt;
&lt;P&gt;Shouldn't this be seen as a defect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254461"&gt;@skcussas&lt;/a&gt;&amp;nbsp;You should start by reading the documentation before asking a question. This behaviour of option&amp;nbsp;NODUPREC is nothing new.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 00:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sort-with-nonduprecs-does-not-work-with-data-ds-keep/m-p/727609#M226333</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-19T00:32:45Z</dc:date>
    </item>
  </channel>
</rss>

