Macros for SAS Application Developers
https://github.com/sasjs/core
mm_getfoldertree.sas File Reference

Returns all folders / subfolder content for a particular root. More...

Go to the source code of this file.

Detailed Description

Shows all members and SubTrees recursively for a particular root. Note - for big sites, this returns a lot of data! So you may wish to reduce the logging to speed up the process (see example below), OR - use mm_tree.sas which uses proc metadata and is far more efficient.

Usage:

options ps=max nonotes nosource;
%mm_getfoldertree(root=/My/Meta/Path, outds=iwantthisdataset)
options notes source;
Parameters
[in]root=the parent folder under which to return all contents
[out]outds=the dataset to create that contains the list of directories
[in]mDebug=set to 1 to show debug messages in the log
Version
9.4
Author
Allan Bowe

Definition in file mm_getfoldertree.sas.