Hi @DonH - I know it's been 9 years, but here's the macro you were looking for!
https://github.com/macropeople/macrocore/blob/master/meta/mm_getfoldertree.sas
I needed to build it to enable easier switching for those customers who need to run Data Controller in a Workspace Server context https://docs.datacontroller.io/dci-troubleshooting/#workspace-server-type-only
4 years later, and Allan's macro now lives at core/meta/mm_getfoldertree.sas at main · sasjs/core
Carl Sommer - SAS Technical Support
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.