- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
Could you tell me where is the physical location of work folder(temporary library)?
Thanks!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Or, Macro method.
%let work_path=%sysfunc(pathname(work));
%put &work_path ;
Ksharp
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Or, Macro method.
%let work_path=%sysfunc(pathname(work));
%put &work_path ;
Ksharp
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If the fileref is on a remote Unix server,How to do this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Ksharps method should work with external files as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure, but you can check dictionary table "dictionary.EXTFILES" to see whether it exist there .