38%macro mp_lib2cards(lib=
39 ,outloc=%sysfunc(pathname(work))
48select distinct lowcase(memname)
51 from dictionary.tables
52 where upcase(libname)=
"%upcase(&lib)";
55%let outloc=%mf_trimstr(&outloc,/);
56%let outloc=%mf_trimstr(&outloc,\);
62%
do x=1 %to %sysfunc(countw(&memlist));
63 %let ds=%scan(&memlist,&x);
64 %mp_ds2cards(base_ds=&lib..&ds
66 ,random_sample=&random_sample
67 %
if "&outfile" ne
"0" %then %
do;
69 ,cards_file=
"&outloc/&outfile"
73 ,cards_file=
"&outloc/&ds..sas"