<?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 How to remove the column with blank and . ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-column-with-blank-and/m-p/375999#M90193</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I would like to&amp;nbsp;looking for the columns containing '.' .&amp;nbsp;&amp;nbsp; Then I would like to remove the whole column containing '.', such as bd_dx_3 and if_img_7.&amp;nbsp;&amp;nbsp; In addtions, I would like to looking for the column with blank which nothing in it.&amp;nbsp;&amp;nbsp;(I would like to add some blanks in the test file,&amp;nbsp; but I don't know how&amp;nbsp;to SAS read the blanks.)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Name $ bd_dx_1-bd_dx_6 State_ID_1-State_ID_4 If_img_1-If_img_8;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;A 0.57 0.015 . 0.927 0.16 0.336 0.153 0.461 0.342 0.056 0.698 0.165 0.019 0.5&lt;/P&gt;
&lt;P&gt;0.413 0.184 . 0.689&lt;/P&gt;
&lt;P&gt;B 0.512 0.811 . 0.293 0.42 0.223 0.809 . 0.483 0.714 0.836 0.231 0.314 0.057&lt;/P&gt;
&lt;P&gt;0.177 0.698 . 0.384&lt;/P&gt;
&lt;P&gt;C 0.406 0.313 . 0.234 0.759 0.328 0.895 0.004 0.659 0.209 0.449 0.927 0.343 0.368&lt;/P&gt;
&lt;P&gt;0.776 0.114 . 0.316&lt;/P&gt;
&lt;P&gt;D 0.995 0.69 . 0.491 0.511 0.288 0.411 0.712 0.17 0.055 0.233 0.465 0.264 0.615&lt;/P&gt;
&lt;P&gt;0.807 0.614 . 0.262&lt;/P&gt;
&lt;P&gt;E 0.193 0.144 . 0.576 0.033 0.51 0.999 . 0.392 . 0.852 0.865 0.96 0.31&lt;/P&gt;
&lt;P&gt;0.267 0.998 . 0.042&lt;/P&gt;
&lt;P&gt;F 0.686 0.103 . 0.173 0.538 0.209 0.887 0.824 0.035 0.426 0.642 0.998 0.884 0.525&lt;/P&gt;
&lt;P&gt;0.737 0.52 . 0.292&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 13:35:59 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2017-07-14T13:35:59Z</dc:date>
    <item>
      <title>How to remove the column with blank and . ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-column-with-blank-and/m-p/375999#M90193</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I would like to&amp;nbsp;looking for the columns containing '.' .&amp;nbsp;&amp;nbsp; Then I would like to remove the whole column containing '.', such as bd_dx_3 and if_img_7.&amp;nbsp;&amp;nbsp; In addtions, I would like to looking for the column with blank which nothing in it.&amp;nbsp;&amp;nbsp;(I would like to add some blanks in the test file,&amp;nbsp; but I don't know how&amp;nbsp;to SAS read the blanks.)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Name $ bd_dx_1-bd_dx_6 State_ID_1-State_ID_4 If_img_1-If_img_8;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;A 0.57 0.015 . 0.927 0.16 0.336 0.153 0.461 0.342 0.056 0.698 0.165 0.019 0.5&lt;/P&gt;
&lt;P&gt;0.413 0.184 . 0.689&lt;/P&gt;
&lt;P&gt;B 0.512 0.811 . 0.293 0.42 0.223 0.809 . 0.483 0.714 0.836 0.231 0.314 0.057&lt;/P&gt;
&lt;P&gt;0.177 0.698 . 0.384&lt;/P&gt;
&lt;P&gt;C 0.406 0.313 . 0.234 0.759 0.328 0.895 0.004 0.659 0.209 0.449 0.927 0.343 0.368&lt;/P&gt;
&lt;P&gt;0.776 0.114 . 0.316&lt;/P&gt;
&lt;P&gt;D 0.995 0.69 . 0.491 0.511 0.288 0.411 0.712 0.17 0.055 0.233 0.465 0.264 0.615&lt;/P&gt;
&lt;P&gt;0.807 0.614 . 0.262&lt;/P&gt;
&lt;P&gt;E 0.193 0.144 . 0.576 0.033 0.51 0.999 . 0.392 . 0.852 0.865 0.96 0.31&lt;/P&gt;
&lt;P&gt;0.267 0.998 . 0.042&lt;/P&gt;
&lt;P&gt;F 0.686 0.103 . 0.173 0.538 0.209 0.887 0.824 0.035 0.426 0.642 0.998 0.884 0.525&lt;/P&gt;
&lt;P&gt;0.737 0.52 . 0.292&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 13:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-column-with-blank-and/m-p/375999#M90193</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-07-14T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the column with blank and . ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-column-with-blank-and/m-p/376016#M90194</link>
      <description>&lt;P&gt;Use PROC MEANS or PROC FREQ to the number of missing. If it's the entire N, create a macro&amp;nbsp;variable with the list of variables and add them into a DROP statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And a quick search will provide an abundance of examples of how this can be achieved.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-to-drop-a-variable-as-long-as-it-contains-missing-value/m-p/28820/highlight/true#M6740" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/How-to-drop-a-variable-as-long-as-it-contains-missing-value/m-p/28820/highlight/true#M6740&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-the-column-with-blank-and/m-p/376016#M90194</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-14T14:39:18Z</dc:date>
    </item>
  </channel>
</rss>

