<?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: Error: Library name is not assigned in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697991#M25473</link>
    <description>&lt;P&gt;You are not. &lt;BR /&gt;1. Place the file in the myfolders folder you created.&lt;BR /&gt;2. Create a library reference to that &lt;STRIKE&gt;file&lt;/STRIKE&gt; folder&lt;BR /&gt;3. Import that file referring to it using the /folders/myfolders notation as the Virtual Machine &lt;BR /&gt;&lt;BR /&gt;Your code should look like below with the correct path and folder name. Note that your file and folder names are case sensitive. &lt;BR /&gt;&lt;BR /&gt;libname myFIles '/folders/myfolders/';&lt;BR /&gt;&lt;BR /&gt;proc import datafile = '/folders/myfolders/demo.csv' out=myFiles.demo dbms=csv replace; run;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 20:31:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-11-10T20:31:00Z</dc:date>
    <item>
      <title>Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697979#M25468</link>
      <description>&lt;P&gt;Hi, I'm new to SAS and I'm trying to import local csv file to SAS Studio. But I got the following error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-11-10 at 11.51.53 AM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51561iFFACAC39E5F7C4E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-11-10 at 11.51.53 AM.png" alt="Screen Shot 2020-11-10 at 11.51.53 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 19:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697979#M25468</guid>
      <dc:creator>cclm529</dc:creator>
      <dc:date>2020-11-10T19:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697984#M25469</link>
      <description>&lt;P&gt;You called your library LIBREF, a bad name overall as that should be a SAS keyword. &lt;BR /&gt;You refer to it in the IMPORT proc as CHO though. &lt;BR /&gt;&lt;BR /&gt;Change them to be the same name. Note that your file path is also incorrect, files need to be in myfolders to be imported.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname CHO '/folders/myfodlers/sasuser.v94';

proc import datafile = '/folders/myfolders/....path to file'
out=cho.data dbms=csv;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697984#M25469</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-10T20:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697985#M25470</link>
      <description>&lt;P&gt;You are trying to use library named CHO, but you have not assigned a libref (which can be done using a LIBNAME statement) for CHO.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697985#M25470</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-10T20:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697988#M25471</link>
      <description>&lt;P&gt;Also note that you should not clutter up the sasuser.v94 directory with data, as it is the directory for your SASUSER library.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697988#M25471</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-10T20:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697989#M25472</link>
      <description>Thank you! I'm actually trying to import from my local file. I don't know if I'm doing it correctly.</description>
      <pubDate>Tue, 10 Nov 2020 20:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697989#M25472</guid>
      <dc:creator>cclm529</dc:creator>
      <dc:date>2020-11-10T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697991#M25473</link>
      <description>&lt;P&gt;You are not. &lt;BR /&gt;1. Place the file in the myfolders folder you created.&lt;BR /&gt;2. Create a library reference to that &lt;STRIKE&gt;file&lt;/STRIKE&gt; folder&lt;BR /&gt;3. Import that file referring to it using the /folders/myfolders notation as the Virtual Machine &lt;BR /&gt;&lt;BR /&gt;Your code should look like below with the correct path and folder name. Note that your file and folder names are case sensitive. &lt;BR /&gt;&lt;BR /&gt;libname myFIles '/folders/myfolders/';&lt;BR /&gt;&lt;BR /&gt;proc import datafile = '/folders/myfolders/demo.csv' out=myFiles.demo dbms=csv replace; run;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/697991#M25473</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-10T20:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/857724#M37833</link>
      <description>&lt;P&gt;This is what I did in the following steps:&lt;/P&gt;&lt;P&gt;1) using the &lt;EM&gt;import icon&lt;/EM&gt;, import the file from your local drive to the "Server Files and Folders"&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Under the&amp;nbsp;"Server Files and Folders", click on NEW, click IMPORT DATA, click SELECT FILE&lt;/P&gt;&lt;P&gt;3) You will see a drop-down that contains the file you locally imported, select that file and click OPEN&lt;/P&gt;&lt;P&gt;4) Copy the file path&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;FILENAME REFFILE '/home/u63000000/newfile.xlsx';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the import data output&lt;/P&gt;&lt;P&gt;5) Paste this file path&amp;nbsp;to your&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;datafile = '/home/u63000000/newfile.xlsx'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;-you should be all set!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/857724#M37833</guid>
      <dc:creator>Aziegbemi</dc:creator>
      <dc:date>2023-02-08T11:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Library name is not assigned</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/857776#M37835</link>
      <description>The original question references SAS University Edition which no longer exists.&lt;BR /&gt;&lt;BR /&gt;The answer posted is for SAS On Demand (cloud) which does not support direct access to your local files, where as SAS University Edition did.</description>
      <pubDate>Wed, 08 Feb 2023 15:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-Library-name-is-not-assigned/m-p/857776#M37835</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-02-08T15:52:02Z</dc:date>
    </item>
  </channel>
</rss>

