<?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: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536263#M7066</link>
    <description>&lt;P&gt;Thank you so much !!! I spent hours for this silly mistake .Thank you again !!&lt;/P&gt;</description>
    <pubDate>Sun, 17 Feb 2019 18:20:29 GMT</pubDate>
    <dc:creator>brook2</dc:creator>
    <dc:date>2019-02-17T18:20:29Z</dc:date>
    <item>
      <title>How to resolve Libref is not assigned ,Library name is not assigned  error in proc import command</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536260#M7064</link>
      <description>&lt;P&gt;How to resolve Libref is not assigned , Library name is not assigned&amp;nbsp; error in proc import command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;***** This is not A spam , I have real question&amp;nbsp; !!!!*** &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Java Version: 1.8.0_181&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS release:&amp;nbsp;9.04.01M6P11072018&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS platform:&amp;nbsp;Linux LIN X64 2.6.32-754.6.3.el6.x86_64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Site name:&amp;nbsp;UNIVERSITY EDITION 2.8 9.4 M6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS on VMware ( SAS on virtual Machine) , I have the same issue when I use SAS onDemand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the guide line in setting up SAS on VMware using the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/software/products/university-edition/docs/en/SASUniversityEditionInstallGuideWindows.pdf" target="_blank"&gt;http://support.sas.com/software/products/university-edition/docs/en/SASUniversityEditionInstallGuideWindows.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I configured the shared folder&amp;nbsp; option&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no issue in working with datalines but when I try to import data using proc import ,&lt;/P&gt;&lt;P&gt;( data which is already stored in the working directory.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I used&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile='/folders/myfolders/Logging.csv'&lt;/P&gt;&lt;P&gt;DBMS=csv out=Logging.csv replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=Logging.csv;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Here is the three errors I am getting , though I was able to solve the first one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first error: Libref 'LoggingData' exceeds 8 characters&amp;nbsp; , I resolved the issue by renaming my file name under 8 characters to Logging&lt;/P&gt;&lt;P&gt;Second error : Library name is not assigned&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Third error : Libref LOGGING (mydataname) is not assigned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Effort :&lt;/P&gt;&lt;P&gt;I spent literally 6 hours looking for answer from YouTube to SAS blogs and SAS community support ,&lt;/P&gt;&lt;P&gt;I came across very similar stuff , but nothing seems clear and concise&lt;/P&gt;&lt;P&gt;I tried to use the below command ( custom library&amp;nbsp; as the WORK lib doesnt seem to work)&amp;nbsp; for every proc command but it is not working either&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let dirdata=C:\SASUniverstyEdition\myfolders;&lt;/P&gt;&lt;P&gt;libname SASLIBS "&amp;amp;dirdata";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname SASLIBS '/folders/myfolders/sasuser.v94';&lt;/P&gt;&lt;P&gt;options user=SASLIBS;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to edit the autoexec.sas code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how &lt;I&gt;can I &lt;/I&gt;get past these two annoying errors&lt;/P&gt;&lt;P&gt;why would I need to assign library if SAS already has a default one , WORK&lt;/P&gt;&lt;P&gt;How can I assign my library globally never to be asked again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please show with examples , as most of help threads are&amp;nbsp; not straight forward&lt;/P&gt;&lt;P&gt;I really need help , I have a lot to work on my project but I am stuck in reading the data.Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 18:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536260#M7064</guid>
      <dc:creator>brook2</dc:creator>
      <dc:date>2019-02-17T18:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536261#M7065</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/261093"&gt;@brook2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try changing your code to this and running it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='/folders/myfolders/Logging.csv'
   DBMS=csv out=Logging replace;
run;

proc print data=Logging;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I modified your code by changing "Logging.csv" to "Logging" in the OUT= option of PROC IMPORT and the DATA= option of PROC PRINT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS uses a two-level name to refer to a data set (libref.datasetName), and Work is used if only a one-level name specified.&amp;nbsp; So when you refer to it as "Logging.csv" SAS then looks for a data set named Csv in the Logging library.&amp;nbsp; If you instead use "Logging" then the "Logging" data set will be created in the default Work library.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this make sense?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 19:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536261#M7065</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2019-02-17T19:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536263#M7066</link>
      <description>&lt;P&gt;Thank you so much !!! I spent hours for this silly mistake .Thank you again !!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 18:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536263#M7066</guid>
      <dc:creator>brook2</dc:creator>
      <dc:date>2019-02-17T18:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536264#M7067</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='/folders/myfolders/Logging.csv'
DBMS=csv out=Logging replace;
run;
proc print data=Logging;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 18:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536264#M7067</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-02-17T18:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536266#M7069</link>
      <description>&lt;P&gt;You're welcome, I'm glad to help!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 18:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/536266#M7069</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2019-02-17T18:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/733374#M9928</link>
      <description>&lt;P&gt;I am having this error:&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 libname in xport '/home/u58437933/CBC_J.XPT';&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref IN was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: XPORT&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /home/u58437933/CBC_J.XPT&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 libname out xlsx '/home/u58437933/out2.xls';&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Invalid physical name for library OUT.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 proc copy inlib=in outlib=out;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Libref OUT is not assigned.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;with this code&lt;/DIV&gt;&lt;DIV class="sasError"&gt;libname in xport '/home/u5843/CBC_J.XPT';&lt;BR /&gt;libname out xlsx '/home/u5843/out2.xls';&lt;BR /&gt;proc copy inlib=in outlib=out;&lt;BR /&gt;run;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Apr 2021 16:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/733374#M9928</guid>
      <dc:creator>yemu10</dc:creator>
      <dc:date>2021-04-13T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve Libref is not assigned ,Library name is not assigned  error in proc import comman</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/826890#M10485</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I abit wonder how I can get the user information&amp;nbsp;&lt;SPAN&gt;u58437933?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/m-p/826890#M10485</guid>
      <dc:creator>Thuong</dc:creator>
      <dc:date>2022-08-03T14:43:16Z</dc:date>
    </item>
  </channel>
</rss>

