17%let root=%sysfunc(pathname(work))/top;
24libname test
"&root/a/e/f";
29%mp_dirlist(path=&root, outds=myTable, maxdepth=MAX)
32 iftrue=(%mf_nobs(work.mytable)=6),
33 desc=All levels returned,
34 outds=work.test_results
37%mp_dirlist(path=&root, outds=myTable2, maxdepth=2)
40 iftrue=(%mf_nobs(work.mytable2)=5),
41 desc=Top two levels returned,
42 outds=work.test_results
45%mp_dirlist(path=&root, outds=work.myTable3, maxdepth=0)
48 iftrue=(%mf_nobs(work.mytable3)=2),
49 desc=Top level returned,
50 outds=work.test_results
53%mp_dirlist(path=&root/b, outds=work.myTable4)
55 iftrue=(%mf_nobs(work.mytable4)=0),
56 desc=Empty table
for empty directory,
57 outds=work.test_results
60%mp_dirlist(path=&root/notexisting, outds=work.myTable5)
62 iftrue=(%mf_nobs(work.mytable5)=0),
63 desc=Empty table
for non-existing directory,
64 outds=work.test_results