<?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: SAS Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70950#M15335</link>
    <description>Alternatively, you can set option validvarname to accept any name form, and use the n extension to tell sas the string is a name.&lt;BR /&gt;
&lt;BR /&gt;
This is valid:&lt;BR /&gt;
[pre]&lt;BR /&gt;
option validvarname=any;&lt;BR /&gt;
data t;&lt;BR /&gt;
  '2@#$%,./;'n = 'a';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Make sure you have a good reason to do this though.</description>
    <pubDate>Mon, 14 Sep 2009 04:48:56 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2009-09-14T04:48:56Z</dc:date>
    <item>
      <title>SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70948#M15333</link>
      <description>Lets assume I have an excel file which has column name starting with a number(ex 2_Addressline). Is it possible to import the file into SAS and use the variable name as it is? if yes how does it work?&lt;BR /&gt;
&lt;BR /&gt;
Is there any others s/w which creates the column name starting with a numneral and can be used with SAS datastep?</description>
      <pubDate>Fri, 11 Sep 2009 16:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70948#M15333</guid>
      <dc:creator>Anuj_Gupta</dc:creator>
      <dc:date>2009-09-11T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70949#M15334</link>
      <description>SAS variables must start with an alpha-character.&lt;BR /&gt;
&lt;BR /&gt;
You may find reference information at the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  using the Google advanced search argument below:&lt;BR /&gt;
&lt;BR /&gt;
dbms import numeric column variable name site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Language Concepts: SAS Variable Attributes&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001103996.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001103996.htm&lt;/A&gt;</description>
      <pubDate>Fri, 11 Sep 2009 17:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70949#M15334</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-11T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70950#M15335</link>
      <description>Alternatively, you can set option validvarname to accept any name form, and use the n extension to tell sas the string is a name.&lt;BR /&gt;
&lt;BR /&gt;
This is valid:&lt;BR /&gt;
[pre]&lt;BR /&gt;
option validvarname=any;&lt;BR /&gt;
data t;&lt;BR /&gt;
  '2@#$%,./;'n = 'a';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Make sure you have a good reason to do this though.</description>
      <pubDate>Mon, 14 Sep 2009 04:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70950#M15335</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-09-14T04:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70951#M15336</link>
      <description>Don't know if it helps, but...&lt;BR /&gt;
&lt;BR /&gt;
Although SAS variables cannot start with a digit, their labels can. &lt;BR /&gt;
&lt;BR /&gt;
As some reporting tools use the label instead of the variable name (SAS/VIEW, SAS E/G, etc..) and if this suffices, just use the LABEL statement to associate any text you want to the desired variable.&lt;BR /&gt;
&lt;BR /&gt;
Check the online documentation for the LABEL statement here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000201974.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000201974.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Mon, 14 Sep 2009 16:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70951#M15336</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-09-14T16:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70952#M15337</link>
      <description>thanks much..&lt;BR /&gt;
this helps</description>
      <pubDate>Thu, 17 Sep 2009 13:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70952#M15337</guid>
      <dc:creator>Anuj_Gupta</dc:creator>
      <dc:date>2009-09-17T13:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70953#M15338</link>
      <description>Thanks a lot, this is the best solution I could have got. Is there any way to assign the values of these columns in some other columns or to do any calculations etc..

Message was edited by: Anuj Gupta</description>
      <pubDate>Thu, 17 Sep 2009 13:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70953#M15338</guid>
      <dc:creator>Anuj_Gupta</dc:creator>
      <dc:date>2009-09-17T13:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70954#M15339</link>
      <description>Hey I found the solution. The columns names starting with numeric are assumed as SAS name literals. To be able to use these variables in datastep we can use following &lt;BR /&gt;
'variable'n</description>
      <pubDate>Thu, 17 Sep 2009 13:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Variables/m-p/70954#M15339</guid>
      <dc:creator>Anuj_Gupta</dc:creator>
      <dc:date>2009-09-17T13:56:15Z</dc:date>
    </item>
  </channel>
</rss>

