BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jc3992
Pyrite | Level 9
%let dirdata=C:\Users\jc3992\MySASData\Week4;
libname WEEK4 "&dirdata";
run;

Hello everyone,

 

Sorry I have used SAS Studio for months and now changed to SAS 9.2

thus I am not familiar with basic things

The code is as above

and the LOG showed:

25   %let dirdata=/folders/myfolders/WEEK 4/;
26   LIBNAME week4 '/folders/myfolders/WEEK 4';
NOTE: Library WEEK4 does not exist.
27   RUN;

Can anyone help me with setting up the library so I can move on?

Thank you very much for reading and any help

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

The first line of the log does not match the first line of the code. Please correct that, and show the real log for your code.

Where is your ancient SAS running? On your Windows desktop or a (UNIX?) server?

View solution in original post

4 REPLIES 4
Reeza
Super User

SAS 9.2 wouldn't use shared folders. 

 

Are you sure you're using 9.2? That's about a decade old.

 

And the log doesn't match the code so it's hard to say what the issue is.

jc3992
Pyrite | Level 9

I have no idea either.

I used SAS Studio because I am a MAC user.

and because many data sets our instructor asked us to do with cannot easily looked through in SAS Studio

I changed to SAS Window version yeaterday.

I am using computers in our school >"<

 

I succeeded by this code

%let dirdata=C:\Users\jc3992\My SAS Data;
libname Test "&dirdata";
run;

I thought my problem is I set a new library by right clicking "Libraries" in Exploere

and actually I do not need to set up a libname "Dirdata"

it can be any libname which I would like to create with a code and the file would appear in the folder "Libraries"

and I just define a path as "dirdata" and create a libname in this path.

That was what my understanding.

 

sometimes after one or two sleeps

I forget about this and start all over again lol

 

Reeza
Super User

The dirData macro variable step is unnecessary. 

 

To create a libname put the path into the libname statement. 

 

libname myLib 'C:\_localdata\sas\reeza\';
Kurt_Bremser
Super User

The first line of the log does not match the first line of the code. Please correct that, and show the real log for your code.

Where is your ancient SAS running? On your Windows desktop or a (UNIX?) server?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 5404 views
  • 2 likes
  • 3 in conversation