<?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: MS Access Variable Name 1Quarter, Rename in SAS? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56309#M15733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had similar problems a few years ago when I was having SAS "talk to" Access a lot. In addition to &lt;STRONG&gt;options validvarname=any&lt;/STRONG&gt; that Ksharp mentioned, you will probably need to use name literals (I think that's what their official name is), e.g. "1Quarter"n (note the n following the quote to indicate it is a name, not a string). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;options validvarname=any;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set old;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename "1Quarter"n = Quarter1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2011 13:05:18 GMT</pubDate>
    <dc:creator>DouglasMartin</dc:creator>
    <dc:date>2011-08-30T13:05:18Z</dc:date>
    <item>
      <title>MS Access Variable Name 1Quarter, Rename in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56305#M15729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a job that reads in an MS Access table with a variable named 1Quarter.&lt;/P&gt;&lt;P&gt;Not having any luck renaming the variable to a SAS compliant name.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Our last option would be to go back into MS Access and rename it before the import, just want to check to see if there is another way to rename.&lt;/P&gt;&lt;P&gt;TIA J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56305#M15729</guid>
      <dc:creator>JaySwan</dc:creator>
      <dc:date>2011-08-29T15:30:52Z</dc:date>
    </item>
    <item>
      <title>MS Access Variable Name 1Quarter, Rename in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56306#M15730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that SAS would convert the name to be _1Quarter.&amp;nbsp; You could change it to be either Quarter1 or Quarter_1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56306#M15730</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-29T15:46:13Z</dc:date>
    </item>
    <item>
      <title>MS Access Variable Name 1Quarter, Rename in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56307#M15731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sort of brute forced this one for now, exported into excel then created a new dataset in sas with correct names and imported...&lt;/P&gt;&lt;P&gt;Not a 100% solution but ok for now...&lt;/P&gt;&lt;P&gt;Thanks, Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 16:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56307#M15731</guid>
      <dc:creator>JaySwan</dc:creator>
      <dc:date>2011-08-29T16:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access Variable Name 1Quarter, Rename in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56308#M15732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options validvarname=any;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 02:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56308#M15732</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-08-30T02:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access Variable Name 1Quarter, Rename in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56309#M15733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had similar problems a few years ago when I was having SAS "talk to" Access a lot. In addition to &lt;STRONG&gt;options validvarname=any&lt;/STRONG&gt; that Ksharp mentioned, you will probably need to use name literals (I think that's what their official name is), e.g. "1Quarter"n (note the n following the quote to indicate it is a name, not a string). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;options validvarname=any;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set old;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename "1Quarter"n = Quarter1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 13:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MS-Access-Variable-Name-1Quarter-Rename-in-SAS/m-p/56309#M15733</guid>
      <dc:creator>DouglasMartin</dc:creator>
      <dc:date>2011-08-30T13:05:18Z</dc:date>
    </item>
  </channel>
</rss>

