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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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