<?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: is there a list of reserved words for naming a dataset? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596468#M15951</link>
    <description>&lt;P&gt;See the section "Rules for SAS Data Set Names, View Names, and Item Store Names" in the link&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p18cdcs4v5wd2dn1q0x296d3qek6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0nfuxt1u6y9jin120gszztjh00o" target="_self"&gt;Names in the SAS Language&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What error message do you get? The code looks fine.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 11:07:49 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-10-15T11:07:49Z</dc:date>
    <item>
      <title>is there a list of reserved words for naming a dataset?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596464#M15950</link>
      <description>&lt;P&gt;for example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data con;
  x = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;causes the error message&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.jpg" style="width: 586px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33149i1B29CBB4DB507FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot.jpg" alt="screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'ungültiger membername für datei' means something like 'invalid member name for file'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've only found a&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p0y43hj7lzhq1gn1r68h65wzljbt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;list&lt;/A&gt;&amp;nbsp;of reserved words for the macro facility.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596464#M15950</guid>
      <dc:creator>Quodly</dc:creator>
      <dc:date>2019-10-15T11:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: is there a list of reserved words for naming a dataset?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596468#M15951</link>
      <description>&lt;P&gt;See the section "Rules for SAS Data Set Names, View Names, and Item Store Names" in the link&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p18cdcs4v5wd2dn1q0x296d3qek6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0nfuxt1u6y9jin120gszztjh00o" target="_self"&gt;Names in the SAS Language&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What error message do you get? The code looks fine.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596468#M15951</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-15T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: is there a list of reserved words for naming a dataset?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596481#M15955</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283289"&gt;@Quodly&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There aren't any reserved words for SAS dataset names. They just must follow the naming convention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what's going wrong with your statement. It works for me.&lt;/P&gt;
&lt;P&gt;Make sure that you retest this in a fresh new SAS session to not get impacted by some upstream issues. This can sometimes lead to "wrong" error messages.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         data con;
29           x = 1;
30         run;

NOTE: The data set WORK.CON has 1 observations and 1 variables.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Addendum:&lt;/P&gt;
&lt;P&gt;Above code has been executed under Rhel so it's not in contradiction with what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;writes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wasn't aware of the Windows restrictions. Learned something new&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 11:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596481#M15955</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-10-16T11:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: is there a list of reserved words for naming a dataset?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596486#M15956</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283289"&gt;@Quodly&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the same error message (in English, though):&amp;nbsp;&lt;FONT face="courier new,courier" color="#FF0000"&gt;ERROR: Invalid member name for file WORK.CON.DATA.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In various places of the SAS(R) 9.4 Companion for Windows you find a sentence like "&lt;SPAN&gt;The words AUX, CON, NUL, PRN, LPT1 - LPT9, and COM1 - COM9 are reserved words under Windows" followed by the instruction not to use any of these reserved words as&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#chifoptfmain.htm" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;filerefs&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#chfoptfmain.htm" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;filenames&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=chloptfmain.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;librefs&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=n1mdalwt8s32fpn0zq27wlue0s93.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;macro variable names&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/n07buc7sg08fdrn1c1jmmr8hl78r.htm#n082l7wzkielp1n1o0zbnvmqh67i" target="_blank" rel="noopener"&gt;environment variables&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;But, indeed, I haven't found the corresponding statement for &lt;EM&gt;dataset&lt;/EM&gt; names. So, thanks for pointing that out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit: Actually, "filenames" comes very close: Windows (7) wouldn't even allow you to name &lt;EM&gt;any&lt;/EM&gt; file &lt;FONT face="courier new,courier"&gt;aux&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;con&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;nul&lt;/FONT&gt;, etc. Not surprisingly, &lt;FONT face="courier new,courier"&gt;.sas7bdat&lt;/FONT&gt; files, i.e. SAS datasets, aren't an exception.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 12:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596486#M15956</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-10-15T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: is there a list of reserved words for naming a dataset?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596511#M15959</link>
      <description>&lt;P&gt;On a mildly related note, do not use these names as data set names:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SET MERGE UPDATE RETAIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They won't cause a problem when you create the data set, but they usually will cause a problem when a DATA step tries to read in the data later.&amp;nbsp; ("Usually" means it depends on the values for a system option.)&amp;nbsp; The intent behind this was to prevent this program from wiping out a valid SAS data set because of a missing semicolon:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want&lt;/P&gt;
&lt;P&gt;set huge.permanent_dataset;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 13:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/is-there-a-list-of-reserved-words-for-naming-a-dataset/m-p/596511#M15959</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-10-15T13:15:15Z</dc:date>
    </item>
  </channel>
</rss>

