<?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 Proc Import variable name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332828#M272029</link>
    <description>&lt;P&gt;Thanks for the responses, seems like options validvarname = V7 does the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 23:01:54 GMT</pubDate>
    <dc:creator>Misekato</dc:creator>
    <dc:date>2017-02-14T23:01:54Z</dc:date>
    <item>
      <title>SAS Proc Import variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332489#M272025</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if anyone was aware of a SAS setting (so within Base SAS itself or the like)&amp;nbsp;that changes the default variable naming settings when doing any sort of importing (whether that be through proc import of an excel, or just using a data step to set a access database)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Since about a month ago, whenever I try importing things using the above, the variable names are not being assigned consistently, sometimes it follows SAS naming convention (e.g. "Time of Month" would be Time_Of_Month), but othertimes it will import the variable as "Time of Month".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of at least the Proc import code to force it to use sas naming convetion, but since this problem is fariyl recent, I'm thinking I must have changed some setting somewhere that switches the default since other people can run it and consistently get the variable to be assigned a sas name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 07:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332489#M272025</guid>
      <dc:creator>Misekato</dc:creator>
      <dc:date>2017-02-14T07:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Import variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332491#M272026</link>
      <description>&lt;P&gt;Options validvarname=V7;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess for changes would be in the config or autoexec files.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 07:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332491#M272026</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-14T07:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Import variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332493#M272027</link>
      <description>&lt;P&gt;And if you don't have write access to the autoexec.sas or sasv9.cfg file, just put the options statement right before your proc import step. options validvarname is valid everywhere, not just on SAS invocation.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 07:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332493#M272027</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-14T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Import variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332690#M272028</link>
      <description>&lt;P&gt;Proc Import and connection to an external DBMS do use different rules. It is very likely that your connection to an external DBMS will try to honor as much of the external DB as practical. So if the DB uses actual spaces in the variable names and your setting for VALIDVARNAME allows it, then you get those spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Import however is a much simpler process and I believe will force any resulting dataset to have the "standard" SAS variable name conventions by default.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 16:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332690#M272028</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-14T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Import variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332828#M272029</link>
      <description>&lt;P&gt;Thanks for the responses, seems like options validvarname = V7 does the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 23:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-Import-variable-name/m-p/332828#M272029</guid>
      <dc:creator>Misekato</dc:creator>
      <dc:date>2017-02-14T23:01:54Z</dc:date>
    </item>
  </channel>
</rss>

