26 %macro mf_getuniquelibref(prefix=mclib,maxtries=1000);
29 %
do x=0 %to &maxtries;
30 %
if %sysfunc(libref(&prefix&x)) ne 0 %then %
do;
31 %put &sysmacroname: Libref &prefix&x is available and being returned;
36 %put unable to find available libref in range &prefix.0-&maxtries;