<?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 9.2 and SAS 9.4 create different variable names when import excel files. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401876#M97524</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. I tried to use system option VALIDVARNAME=ANY, both versions produced the same variable names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xiumei&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 18:40:16 GMT</pubDate>
    <dc:creator>yangx</dc:creator>
    <dc:date>2017-10-06T18:40:16Z</dc:date>
    <item>
      <title>SAS 9.2 and SAS 9.4 create different variable names when import excel files.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401855#M97518</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I used proc import to import an excel file, I got different variable names for SAS version 9.2 and 9.4.&lt;/P&gt;&lt;P&gt;Below is the program:&lt;/P&gt;&lt;P&gt;proc import datafile="copy.xls" out=othlab1 dbms=xls replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;datarow = 2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;In the excel file one column has "HbA1c (fraction)" as label, when I ran the program using SAS9.2, I got "NOTE: variable name change: HbA1c (fraction) -&amp;gt; VAR19"; if I ran the program using sas9.4, I got &amp;nbsp;"NOTE:&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable Name Change.&amp;nbsp; HbA1c (fraction) -&amp;gt; HbA1c__fraction_. I know bracket is not valid SAS variable name, it should change to VAR followed by a number, but whey does SAS9.4 interpret this as a different way? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xiumei&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401855#M97518</guid>
      <dc:creator>yangx</dc:creator>
      <dc:date>2017-10-06T17:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and SAS 9.4 create different variable names when import excel files.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401860#M97519</link>
      <description>&lt;P&gt;It seems that SAS 9.4 tries to preserve more of the original variable name when converting to a valid SAS name.&lt;/P&gt;
&lt;P&gt;If you want to have consistent control over data import, do not use the Excel format; instead save your data as a csv file and import that with a data step where&amp;nbsp;&lt;U&gt;you&lt;/U&gt; set variable names.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401860#M97519</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-06T18:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and SAS 9.4 create different variable names when import excel files.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401864#M97520</link>
      <description>&lt;P&gt;SAS made major upgrades in the support of Excel format files.&amp;nbsp;I suspect that this includes changes how it renames the illegal column names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you try the same with the system option VALIDVARNAME set to ANY.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401864#M97520</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-06T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and SAS 9.4 create different variable names when import excel files.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401865#M97521</link>
      <description>&lt;P&gt;I'm feeling a little snarky today so I'll say this is yet another reason not to use Excel for data interchange and not to rely on proc import for repetitive tasks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401865#M97521</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-06T18:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.2 and SAS 9.4 create different variable names when import excel files.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401876#M97524</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. I tried to use system option VALIDVARNAME=ANY, both versions produced the same variable names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xiumei&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-2-and-SAS-9-4-create-different-variable-names-when-import/m-p/401876#M97524</guid>
      <dc:creator>yangx</dc:creator>
      <dc:date>2017-10-06T18:40:16Z</dc:date>
    </item>
  </channel>
</rss>

