BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
harrylui
Obsidian | Level 7

Good day everyone,

 

i am using below code to show my temporary library in my log.

 

proc datasets lib=work;
quit;run;

 

C:\Users\1234567\AppData\Local\Temp

 

can i place this path  to my libname  by using program?

 

like below

 

 libname "C:\Users\1234567\AppData\Local\Temp";

 

Best Regards,

Harry 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

@harrylui wrote:

can i place this path  to my libname  by using program?

 

like below

 

 libname "C:\Users\1234567\AppData\Local\Temp";

 


Your statement is wrong. You have to give a name in the LIBNAME statement.

 

libname name "C:\users\1234567\appdata\local\temp";

Side comment: don't put user created data sets inside of APPDATA on Windows. Put them somewhere else, like DOCUMENTS, which is a place designed for user created data.

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

@harrylui wrote:

can i place this path  to my libname  by using program?

 

like below

 

 libname "C:\Users\1234567\AppData\Local\Temp";

 


Your statement is wrong. You have to give a name in the LIBNAME statement.

 

libname name "C:\users\1234567\appdata\local\temp";

Side comment: don't put user created data sets inside of APPDATA on Windows. Put them somewhere else, like DOCUMENTS, which is a place designed for user created data.

--
Paige Miller
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.

SAS Training: Just a Click Away

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

Browse our catalog!

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