<?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: delete the variable that have the same value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143988#M297034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspected that, don't do so many variables at once and or drop any you know do no need to be tested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2013 13:37:21 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-11-15T13:37:21Z</dc:date>
    <item>
      <title>delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143985#M297031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how kann i find or delete if the any Variable in a table have the same value?&lt;BR /&gt;for Ex:&lt;BR /&gt;if the var1 have only&amp;nbsp; value "test" then&amp;nbsp; i dont need that Variable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have 1478 Variable. i can not look at every Variable wiht Prog tabulate or freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best Regards&lt;BR /&gt;Celal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143985#M297031</guid>
      <dc:creator>arslan</dc:creator>
      <dc:date>2013-11-14T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143986#M297032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider this proc freq.&amp;nbsp;&amp;nbsp; Depending on your data this may be "too much".&amp;nbsp; If you have variables that you know have more than one level you could drop them from consideration.&amp;nbsp; data=sashelp.heart(drop=.......);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; nlevels;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; nlevels=nlevels;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;freq&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=sashelp.heart &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nlevels&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;select&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;all&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 19:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143986#M297032</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-11-14T19:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143987#M297033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but there is no error message:&lt;/P&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know another way? or with macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 09:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143987#M297033</guid>
      <dc:creator>arslan</dc:creator>
      <dc:date>2013-11-15T09:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143988#M297034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspected that, don't do so many variables at once and or drop any you know do no need to be tested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 13:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143988#M297034</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-11-15T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143989#M297035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this SAS-L thread address the subject well. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="go"&gt;&lt;A href="http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0712C&amp;amp;L=sas-l&amp;amp;D=0&amp;amp;P=42815"&gt;http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0712C&amp;amp;L=sas-l&amp;amp;D=0&amp;amp;P=42815&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It includes participation from some real SAS programming "heavy hitters" and one not so much (me).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 15:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143989#M297035</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-11-15T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143990#M297036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For numeric variables, it would be possible to use PROC MEANS instead of PROC FREQ.&amp;nbsp; The program could compare the MIN to the MAX for each variable, to see whether they differ.&amp;nbsp; (That would not identify variables that are always either missing or some other constant value.)&amp;nbsp; The difficultly with that approach is that it gets a little complex.&amp;nbsp; A simpler way would be to have PROC MEANS compute the range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=have noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var _numeric_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output out=stats (drop=_freq_ _type_) range=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values in the output data set should be easy to parse in a DATA step to figure out which values change.&amp;nbsp; The only complication is that the DATA step would need to use an array with the VNAME function to determine the original variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That approach would let you limit PROC FREQ to handling just the character variables ... possibly with enough memory to do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 15:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143990#M297036</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-11-15T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143991#M297037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, DN. That was a heck of thread. Many famous names. Are they all retired or some? Don't see them often on SAS-L anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 18:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143991#M297037</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-11-15T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: delete the variable that have the same value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143992#M297038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not much going on on SAS-L at all these days, although most of the participants in that thread are still around from time to time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/delete-the-variable-that-have-the-same-value/m-p/143992#M297038</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-11-15T19:51:05Z</dc:date>
    </item>
  </channel>
</rss>

