Looking into creating subfolders in our libraries to help organize our info better. In the FROM clause of a SELECT statement, we reference data sets using <library name>.<dataset name>. Is there a way to reference a subfolder under a library? For example, say we have a subfolder named "Company" under a library. I don't think <library name>.Company.<dataset name> works. Thanks in advance.
Note we are using Enterprise Guide 7.15 HF6
That worked perfectly, thank you!
SAS libraries are one level only. You can't have a library within a library.
So if you have
saspath
libraries
lib1
lib2
in your directory structure, you have to do
libname lib2 '/saspath/libraries/lib1/lib2';
and use
lib2.dataset
but you can't address lib2 by simply assigning lib1:
libname lib1 '/saspath/libraries/lib1';
and then use
lib1.lib2.dataset
in your code.
That worked perfectly, thank you!
Hi @boilerbujddy You missed to mark @Kurt_Bremser solution . Request you to kindly change so that viewers can find the solution at ease during their search.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.