05-19-2014 02:56 PM
I have a library which i have defined as test for example libname test "C:\temp";
there are some active libraries like maps for example and i want to know how do i find the location in which the datasets are stored.
I can do that if I just right click and see properties but how do i programatically locate where the datasets are being stored in the C drive
05-19-2014 03:22 PM
This will show in the results window. You can drop the value into a macro variable for use elsewhere in your program using
INTO on the select statement probably with NOPRINT
05-19-2014 03:32 PM
Not sure if I understand 1) What libraries you are talking about, I assume they are those predefined libraries you see out of box? as if you define it, you know where it is. 2) What do you mean "pragmatically"
Anyway, the definition of those predefined libraries (eg. SASHELP, MAPS etc) can be found in either SASv9.cfg (most likely) or autoexec.sas
for instance, you will find statements like this in cfg file:
-SET SASROOT "C:\Program Files\SASHome\x86\SASFoundation\9.3"
meaning library maps is located in
In autoexec.sas, you will just see those libname statements if there are any.
05-19-2014 03:43 PM