<?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 Hashtag (#) in foreign table´s columnname in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Hashtag-in-foreign-table-s-columnname/m-p/188402#M47690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m having a problem regarding naming conventions in SAS.&lt;/P&gt;&lt;P&gt;I working with a table that I have no control over and one columns identifier contains a hashtag (ID_XXX#).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert rows via 'proc sql', I have to omit the insert column listing because SAS can´t handle the # in the one column´s name.&lt;/P&gt;&lt;P&gt;Since omitting this list is bad practice and may crash my program if there are changes made to the table,&lt;/P&gt;&lt;P&gt;I´d like to find a way to handle the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle column names containing hashtags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2014 08:54:32 GMT</pubDate>
    <dc:creator>Maze</dc:creator>
    <dc:date>2014-10-17T08:54:32Z</dc:date>
    <item>
      <title>Hashtag (#) in foreign table´s columnname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hashtag-in-foreign-table-s-columnname/m-p/188402#M47690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m having a problem regarding naming conventions in SAS.&lt;/P&gt;&lt;P&gt;I working with a table that I have no control over and one columns identifier contains a hashtag (ID_XXX#).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert rows via 'proc sql', I have to omit the insert column listing because SAS can´t handle the # in the one column´s name.&lt;/P&gt;&lt;P&gt;Since omitting this list is bad practice and may crash my program if there are changes made to the table,&lt;/P&gt;&lt;P&gt;I´d like to find a way to handle the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle column names containing hashtags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 08:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hashtag-in-foreign-table-s-columnname/m-p/188402#M47690</guid>
      <dc:creator>Maze</dc:creator>
      <dc:date>2014-10-17T08:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hashtag (#) in foreign table´s columnname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hashtag-in-foreign-table-s-columnname/m-p/188403#M47691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to learn about SASNAMES.&amp;nbsp; Using system option VALIDVARNAME=ANY you should be able to use the name.&amp;nbsp; When you reference it you will need to use name literal syntax 'name'N.&amp;nbsp; For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'(ID_XXX#)'n&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'Any name'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&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;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;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 10:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hashtag-in-foreign-table-s-columnname/m-p/188403#M47691</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-17T10:30:27Z</dc:date>
    </item>
  </channel>
</rss>

