24 %macro mp_lib2cards(lib=
25 ,outloc=%sysfunc(pathname(work))
33 select distinct lowcase(memname)
36 from dictionary.tables
37 where upcase(libname)=
"%upcase(&lib)";
43 %
do x=1 %to %sysfunc(countw(&memlist));
44 %let ds=%scan(&memlist,&x);
45 %mp_ds2cards(base_ds=&lib..&ds
46 ,cards_file=
"&outloc/&ds..sas" 48 ,random_sample=&random_sample)