<?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: Get Error Invalid Data Set Name in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/907115#M40552</link>
    <description>Thanks so much for the help. I got it solved.&lt;BR /&gt;</description>
    <pubDate>Fri, 08 Dec 2023 20:47:16 GMT</pubDate>
    <dc:creator>LauriB</dc:creator>
    <dc:date>2023-12-08T20:47:16Z</dc:date>
    <item>
      <title>Get Error Invalid Data Set Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/904297#M40383</link>
      <description>&lt;P&gt;I get the error message:&amp;nbsp;ERROR 211-185: Invalid data set name. I have tried a number of things and can't figure out why I am getting this error. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname student 'C:\Users\lbyer\Documents\Byerley\Water\RE_ Water with Diet';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *folder where Water file is saved;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; water;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set student.diet4v2018waterOct2023.csv;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by FoodCode;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 23:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/904297#M40383</guid>
      <dc:creator>LauriB</dc:creator>
      <dc:date>2023-11-22T23:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Error Invalid Data Set Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/904298#M40384</link>
      <description>&lt;P&gt;A dataset name cannot have a period in it.&lt;/P&gt;
&lt;P&gt;Do you actually have a .sas7bdat file?&amp;nbsp; If so what is its name?&lt;/P&gt;
&lt;P&gt;If not then what kind of file do you have?&amp;nbsp; Do you have a CSV file?&amp;nbsp; That is a TEXT file.&amp;nbsp; You will have to run a DATA STEP to read the TEXT file to make a SAS dataset.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 23:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/904298#M40384</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-22T23:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Error Invalid Data Set Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/904300#M40385</link>
      <description>&lt;P&gt;Your source data is an external .csv file. A &lt;STRONG&gt;libname&lt;/STRONG&gt; is for access to (SAS) tables, a &lt;STRONG&gt;filename&lt;/STRONG&gt; is for access to external files, a &lt;STRONG&gt;set&lt;/STRONG&gt; statement gets used to read a table (and not a file like in your code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you need to do is first to read your external file into a SAS table that you then can use in a SAS datastep or SAS Proc.&lt;/P&gt;
&lt;P&gt;Below SAS docu example should show you the way:&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n02nz0e7cykqhun14hcppfmd0558.htm" target="_self"&gt; Example 4: Importing a Comma-Delimited File with a CSV Extension&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need full control over how external data gets mapped into a SAS table then use a SAS datastep/infile, input instead of Proc Import.&lt;/P&gt;
&lt;P&gt;Proc Import for a text file/.csv will actually also generate such data step code which it writes to the SAS log. This should give you some guidance how such code looks like.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 02:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/904300#M40385</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-23T02:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Error Invalid Data Set Name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/907115#M40552</link>
      <description>Thanks so much for the help. I got it solved.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Dec 2023 20:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Get-Error-Invalid-Data-Set-Name/m-p/907115#M40552</guid>
      <dc:creator>LauriB</dc:creator>
      <dc:date>2023-12-08T20:47:16Z</dc:date>
    </item>
  </channel>
</rss>

