Help using Base SAS procedures

Where is the physical location of work folder

Accepted Solution Solved
Reply
Regular Contributor
Posts: 222
Accepted Solution

Where is the physical location of work folder


Hello everyone,

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

Thanks!


Accepted Solutions
Solution
‎05-06-2012 10:15 PM
Super User
Posts: 9,681

Re: Where is the physical location of work folder

Or,  Macro method.

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

%put &work_path ;

Ksharp

View solution in original post


All Replies
Super Contributor
Posts: 349

Re: Where is the physical location of work folder

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

Super User
Posts: 10,500

Re: Where is the physical location of work folder

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.

Solution
‎05-06-2012 10:15 PM
Super User
Posts: 9,681

Re: Where is the physical location of work folder

Or,  Macro method.

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

%put &work_path ;

Ksharp

Contributor
Posts: 35

Re: Where is the physical location of work folder

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

Thanks

Super User
Posts: 10,500

Re: Where is the physical location of work folder

Ksharps method should work with external files as well.

Valued Guide
Posts: 2,175

Re: Where is the physical location of work folder

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

Super User
Posts: 9,681

Re: Where is the physical location of work folder

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

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 3900 views
  • 3 likes
  • 6 in conversation