<?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: adding exception to proc sort nodupkey by_all_ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857110#M338631</link>
    <description>&lt;P&gt;No.&lt;/P&gt;
&lt;P&gt;But it is not hard to generate the actual list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=original_data(drop=obs_id obs=0) out=names; var _all_; run; 
proc sql noprint; select nliteral(_name_) into :names separated by ' ' from names; quit;
proc sort data=original_data out=dups_removed nodupkey;
  by &amp;amp;names;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Feb 2023 20:32:32 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-02-03T20:32:32Z</dc:date>
    <item>
      <title>adding exception to proc sort nodupkey by_all_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857107#M338629</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to clean some data by deleting observations that were entered twice - however, these were assigned unique identifiers that I need to keep for linkage purposes.&amp;nbsp; &amp;nbsp;Essentially I want to run a nodupkey and sort by all variables with the exception of the observation ID's.&amp;nbsp; Is there a way to add an exception to the by_all_ command?&amp;nbsp; Something like by_all_ except obs_id ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.,&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data = original_data out = dups_removed nodupkey;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;by_all_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Spec&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857107#M338629</guid>
      <dc:creator>SpecBurns</dc:creator>
      <dc:date>2023-02-03T20:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: adding exception to proc sort nodupkey by_all_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857110#M338631</link>
      <description>&lt;P&gt;No.&lt;/P&gt;
&lt;P&gt;But it is not hard to generate the actual list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=original_data(drop=obs_id obs=0) out=names; var _all_; run; 
proc sql noprint; select nliteral(_name_) into :names separated by ' ' from names; quit;
proc sort data=original_data out=dups_removed nodupkey;
  by &amp;amp;names;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857110#M338631</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-02-03T20:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: adding exception to proc sort nodupkey by_all_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857116#M338637</link>
      <description>Thanks!</description>
      <pubDate>Fri, 03 Feb 2023 21:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-exception-to-proc-sort-nodupkey-by-all/m-p/857116#M338637</guid>
      <dc:creator>SpecBurns</dc:creator>
      <dc:date>2023-02-03T21:06:49Z</dc:date>
    </item>
  </channel>
</rss>

