39%macro mp_lib2cards(lib=
40 ,outloc=%sysfunc(pathname(work))
49select distinct lowcase(memname)
52 from dictionary.tables
53 where upcase(libname)=
"%upcase(&lib)";
56%let outloc=%mf_trimstr(&outloc,/);
57%let outloc=%mf_trimstr(&outloc,\);
63%
do x=1 %to %sysfunc(countw(&memlist));
64 %let ds=%scan(&memlist,&x);
65 %mp_ds2cards(base_ds=&lib..&ds
67 ,random_sample=&random_sample
68 %
if "&outfile" ne
"0" %then %
do;
70 ,cards_file=
"&outloc/&outfile"
74 ,cards_file=
"&outloc/&ds..sas"