SAS Procedures

Help using Base SAS procedures
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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