Use this %DIRTREE() macro.
You can pass it multiple top level nodes if you want (separated by pipe).
You can limit the number of levels of subdirectories in scans.
%dirtree
/*---------------------------------------------------------------------------
Build dataset of files in directory tree(s)
----------------------------------------------------------------------------*/
(directory /* Pipe delimited directory list (default=.) */
,out=dirtree /* Output dataset name */
,maxdepth=120 /* Maximum tree depth */
);
... View more