<?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 Did SAS Viya for Learners update the rule for naming the column when importing from xlsx in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965509#M375866</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname = v7;
options symbolgen;
options fullstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I remember by this system statements, we have&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Patient ID # A column name in xlsx table.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;became this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Patient_ID&lt;/PRE&gt;
&lt;P&gt;in SAS after importing previously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But now it is not working!&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2025 15:12:09 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2025-05-01T15:12:09Z</dc:date>
    <item>
      <title>Did SAS Viya for Learners update the rule for naming the column when importing from xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965509#M375866</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname = v7;
options symbolgen;
options fullstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I remember by this system statements, we have&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Patient ID # A column name in xlsx table.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;became this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Patient_ID&lt;/PRE&gt;
&lt;P&gt;in SAS after importing previously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But now it is not working!&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 15:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965509#M375866</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-01T15:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Did SAS Viya for Learners update the rule for naming the column when importing from xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965550#M375886</link>
      <description>&lt;P&gt;Did you execute the statement in the current session?&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;options validvarname = v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the Learners version resets many of the system options to defaults at start of the session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or show the log of what you have done to see if there is something else going on.&lt;/P&gt;
&lt;P&gt;Such as possibly not replacing an existing data set on import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I have hated XLSX, and the predecessor XLS, file formats so much that I way prefer saving the file to CSV (comma separated values) and writing a data step to read the data from the resulting text file as then I control what the variable names are, the types, lengths and can add labels and formats as needed as well as data checking.&lt;/P&gt;
&lt;P&gt;Even importing the CSV file will generate a data step code to see what was done and can be copied from the log and modified to do what is desired and not stuck with the black box of import of XLSX with no real feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 19:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965550#M375886</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-05-01T19:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Did SAS Viya for Learners update the rule for naming the column when importing from xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965575#M375896</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yep, I ran the options statement first, before I ran the import script.&lt;BR /&gt;&lt;BR /&gt;SAS OnDemand also encountered the same issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: The same codes was fine previously.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 06:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Did-SAS-Viya-for-Learners-update-the-rule-for-naming-the-column/m-p/965575#M375896</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-05-02T06:10:24Z</dc:date>
    </item>
  </channel>
</rss>

