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 .

 

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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