<?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: SELECT COLUMN in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829195#M327591</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431793"&gt;@jeremy7&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How can I select column name with _ and space like name _category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way in SAS that can standardize the column name ?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To reference a name that does not follow normal rules you have to use a name literal&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'name _category'n&lt;/PRE&gt;
&lt;P&gt;What is the SOURCE of the data that has names with spaces in them?&lt;/P&gt;
&lt;P&gt;To allow SAS to use such names you have to have set the VALIDVARNAME option to ANY.&lt;/P&gt;
&lt;P&gt;If the source was an Excel file or text file that you imported you could set the VALIDVARNAME back to V7 and then re-import the data.&amp;nbsp; PROC IMPORT should then convert those invalid names to something usable.&amp;nbsp; Perhaps name__category.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 13:23:44 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-18T13:23:44Z</dc:date>
    <item>
      <title>SELECT COLUMN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829194#M327590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I select column name with _ and space like name _category.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way in SAS that can standardize the column name ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829194#M327590</guid>
      <dc:creator>jeremy7</dc:creator>
      <dc:date>2022-08-18T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT COLUMN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829195#M327591</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431793"&gt;@jeremy7&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How can I select column name with _ and space like name _category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way in SAS that can standardize the column name ?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To reference a name that does not follow normal rules you have to use a name literal&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'name _category'n&lt;/PRE&gt;
&lt;P&gt;What is the SOURCE of the data that has names with spaces in them?&lt;/P&gt;
&lt;P&gt;To allow SAS to use such names you have to have set the VALIDVARNAME option to ANY.&lt;/P&gt;
&lt;P&gt;If the source was an Excel file or text file that you imported you could set the VALIDVARNAME back to V7 and then re-import the data.&amp;nbsp; PROC IMPORT should then convert those invalid names to something usable.&amp;nbsp; Perhaps name__category.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829195#M327591</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-18T13:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT COLUMN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829225#M327598</link>
      <description>&lt;P&gt;Add this to the top of your code and re-run it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2022 15:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-COLUMN/m-p/829225#M327598</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-18T15:03:56Z</dc:date>
    </item>
  </channel>
</rss>

