SAS - Create new libraries nested inside WORK

Viewed 1077

tl;dr: Can SAS libraries be nested within one another in the Enhanced Editor Explorer?

I am working with code which generates a plethora of data sets. Although there are many individual data sets, they can be grouped into various categories. For instance, perhaps 30 of them are incoming "raw" data, another 50 are analysis "results" and the remaining 20 are "intermediate" steps.

Currently, all 100 data sets reside in the Work directory. They have been well named so that they appear next to one another in the SAS Explorer window. However, I would prefer to organize them in folders.

One way to do this is to create new directories within the temporary Work folder.

%let dirWORK = %sysfunc(pathname(Work));

options dlcreatedir;

libname raw     "&dirWORK./raw";
libname interm  "&dirWORK./intermediate";
libname results "&dirWORK./results";

As sub-directories of Work, these directories and their contents will be deleted when the session ends. This is agreeable.

Not agreeable is how the raw, iterm, and results libraries appear one level up in 'Active Libraries' instead of within the 'Contents of "Work"'. This behavior is somewhat counter-intuitive and awkward.

  • Is there a way to view the sub-folders of Work within the 'Contents of "Work"' in the SAS Explorer?
  • Perhaps there's another way to separate the data sets (DCREATE?) which causes the Explorer window to behave like a typical file browser?
3 Answers
Related