<?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: How to ignore case while using nodupkey in proc sort? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307167#M61080</link>
    <description>&lt;P&gt;I don't think what you are attempting is possible with Proc Sort. It may be possible with proc sql however as you can upcase as needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will either have to take a pass through a data step to UPCASE the variable(s) or add upcased variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql may give a similar result but does not have an actual concept of "first" so requires more code and likely data manipulation to maintain order.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 15:42:53 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-10-25T15:42:53Z</dc:date>
    <item>
      <title>How to ignore case while using nodupkey in proc sort?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307163#M61079</link>
      <description>&lt;P&gt;i have code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input name $ age;&lt;BR /&gt;datalines;&lt;BR /&gt;a 1&lt;BR /&gt;a 2&lt;BR /&gt;a 3&lt;BR /&gt;A 1&lt;BR /&gt;a 4&lt;BR /&gt;A 3&lt;BR /&gt;A 2&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=test nodupkey ;&lt;BR /&gt;by name; run;&lt;BR /&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output is : A 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a &amp;nbsp;1&lt;/P&gt;&lt;P&gt;desire output is : a 1 (only)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any possibility to ignore case and select only first&amp;nbsp;unique record.(without any kind of manipulation in data and using only proc sort)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307163#M61079</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2016-10-25T15:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore case while using nodupkey in proc sort?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307167#M61080</link>
      <description>&lt;P&gt;I don't think what you are attempting is possible with Proc Sort. It may be possible with proc sql however as you can upcase as needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will either have to take a pass through a data step to UPCASE the variable(s) or add upcased variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql may give a similar result but does not have an actual concept of "first" so requires more code and likely data manipulation to maintain order.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307167#M61080</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-25T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore case while using nodupkey in proc sort?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307176#M61082</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input name $ age;
datalines;
a 1
a 2
a 3
A 1
a 4
A 3
A 2
;
run;
proc print;
   run;
proc summary nway data=test;
   format name $upcase.;
   class name;
   output out=nodupkey(drop=_type_ _freq_) idgroup(out(age--age)=);
   run;
proc print;
   format _all_;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-case-while-using-nodupkey-in-proc-sort/m-p/307176#M61082</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-10-25T16:17:59Z</dc:date>
    </item>
  </channel>
</rss>

