<?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 Dataset name starting with a number in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287201#M19615</link>
    <description>&lt;P&gt;Hi, this may sound strange as a strange thing to want to do, but when I use Import Data from the EG (6.1) menu, I can created an import step for a file (eg. a CSV file) that as a &lt;EM&gt;number&lt;/EM&gt; as the first 'character' in the name, for instance 2016_07_26_mycsv.csv. This gets imported allright and a SAS dataset is created in the work folder with the same name, also including the first 'character', here a '2'.&amp;nbsp; But this dataset cannot be referenced by its name, at least not in any way I know of. So that is my question: How do I handle this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes I have succesfully renamed the dataset manually in the explorer window, but strangely enough this not always allowed from EG61. I cannot see the pattern in when it is allowed and not and would like to have a more stable way of handling this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Poul Ravn Sørensen&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 14:20:25 GMT</pubDate>
    <dc:creator>PoulRavn</dc:creator>
    <dc:date>2016-07-26T14:20:25Z</dc:date>
    <item>
      <title>Dataset name starting with a number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287201#M19615</link>
      <description>&lt;P&gt;Hi, this may sound strange as a strange thing to want to do, but when I use Import Data from the EG (6.1) menu, I can created an import step for a file (eg. a CSV file) that as a &lt;EM&gt;number&lt;/EM&gt; as the first 'character' in the name, for instance 2016_07_26_mycsv.csv. This gets imported allright and a SAS dataset is created in the work folder with the same name, also including the first 'character', here a '2'.&amp;nbsp; But this dataset cannot be referenced by its name, at least not in any way I know of. So that is my question: How do I handle this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes I have succesfully renamed the dataset manually in the explorer window, but strangely enough this not always allowed from EG61. I cannot see the pattern in when it is allowed and not and would like to have a more stable way of handling this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Poul Ravn Sørensen&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287201#M19615</guid>
      <dc:creator>PoulRavn</dc:creator>
      <dc:date>2016-07-26T14:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset name starting with a number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287213#M19616</link>
      <description>&lt;P&gt;Don't allow SAS to create names with numbers at the start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one has the standard SAS restrictions, the second option which seems to be the default in EG allows the naming convention you see.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Options validvarname = v7;

Options validvarname = Any;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can reference the dataset using a name literal, quotes and a N afterwards.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'2016_07_26mycsv.csv'n&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287213#M19616</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-26T14:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset name starting with a number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287218#M19617</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;has given you a good explanation. &amp;nbsp;I would just add that this is another good example of why not to keep "data" in table names/column names. &amp;nbsp;Table names and variable names are for programming purpose - they are not to store data in. &amp;nbsp;It makes your life much harder if you are trying to work out what datasetnames are, what column names are. &amp;nbsp;Have a read where the "data" in the filename is stored to the dataset, and have one dataset for all the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dataset-name-starting-with-a-number/m-p/287218#M19617</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-26T14:44:15Z</dc:date>
    </item>
  </channel>
</rss>

