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


Hello everyone,

Could you tell me where is the physical location of work folder(temporary  library)?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Or,  Macro method.

%let work_path=%sysfunc(pathname(work));

%put &work_path ;

Ksharp

View solution in original post

7 REPLIES 7
shivas
Pyrite | Level 9

Hi Mike,

Right click on the work library and you can find the work library path.

or you can see it in sasv9.cfg file.

Thanks,

Shiva

ballardw
Super User

This code will show it:

 

proc sql;

select path from dictionary.libnames

where libname='WORK';

quit;

If you're using windows with a default installation the library will change every time you start SAS.

Ksharp
Super User

Or,  Macro method.

%let work_path=%sysfunc(pathname(work));

%put &work_path ;

Ksharp

George_S
Fluorite | Level 6

If the fileref is on a remote Unix server,How to do this? 

Thanks

ballardw
Super User

Ksharps method should work with external files as well.

Peter_C
Rhodochrosite | Level 12

George

Ksharp's method works (or reduce it to one statement

%put %quote( %sysfunc( pathname(work)) );
) with  %quote() added to protect any special characters in the physical path

, if you execute it in the sas session in the "remote Unix server" you referred to.

or if you prefer to avoid the macro language,  just

rsubmit ;

libname work list ;

endrsubmit ;

peterC

Ksharp
Super User

I am not sure, but you can check dictionary table "dictionary.EXTFILES" to see whether it exist there .

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 7 replies
  • 74970 views
  • 8 likes
  • 6 in conversation