BookmarkSubscribeRSS Feed
brook2
Fluorite | Level 6

Java Version: 1.8.0_181
SAS release: 9.04.01M6P11072018
SAS platform: Linux LIN X64 2.6.32-754.6.3.el6.x86_64
Site name: UNIVERSITY EDITION 2.8 9.4 M6

 

I am using SAS on VMware ( SAS on virtual Machine) , I have the same issue when I use SAS onDemand.

 

I followed the guide line in setting up SAS on VMware using the below link

http://support.sas.com/software/products/university-edition/docs/en/SASUniversityEditionInstallGuide...

I configured the shared folder  option 

 

I have no issue in working with datalines but when I try to import data using proc import ,

( data which is already stored in the working directory.)

 

Here is the code I used

 

proc import datafile='/folders/myfolders/Logging.csv'
DBMS=csv out=Logging.csv replace;
run;
proc print data=Logging.csv;
run;

Here is the three errors I am getting , though I was able to solve the first one.

 

first error: Libref 'LoggingData' exceeds 8 characters  , I resolved the issue by renaming my file name under 8 characters to Logging

Second error : Library name is not assigned  

Third error : Libref LOGGING (mydataname) is not assigned

 

Effort :

I spent literally 6 hours looking for answer from YouTube to SAS blogs and SAS community support ,

I came across very similar stuff , but nothing seems clear and concise

I tried to use the below command ( custom library  as the WORK lib doesnt seem to work)  for every proc command but it is not working either

 

%let dirdata=C:\SASUniverstyEdition\myfolders;

libname SASLIBS "&dirdata";

run;

 

libname SASLIBS '/folders/myfolders/sasuser.v94';

options user=SASLIBS;

run;

 

I also tried to edit the autoexec.sas code

 

 

my question is

 

how can I get past these two annoying errors

why would I need to assign library if SAS already has a default one , WORK

How can I assign my library globally never to be asked again

 

Please show with examples , as most of help threads are  not straight forward

I really need help , I have a lot to work on my project but I am stuck in reading the data.Thanks in advance. 




 

1 REPLY 1
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13
proc import datafile='/folders/myfolders/Logging.csv'
DBMS=csv out=Logging replace;
run;
proc print data=Logging;
run;

you have this same question already resolved in this tread

https://communities.sas.com/t5/SAS-Studio/How-to-resolve-Libref-is-not-assigned-Library-name-is-not/...

Please don't repost the same question .

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 550 views
  • 0 likes
  • 2 in conversation