Production Ready Macros for SAS Application Developers
mf_getuniquelibref.sas File Reference

Returns an unused libref. More...

Go to the source code of this file.

Detailed Description

Use as follows:

libname mclib0 (work);
libname mclib1 (work);
libname mclib2 (work);

%let libref=%mf_getuniquelibref();
%put &=libref;

which returns:

mclib3

= first part of libref. Remember that librefs can only be 8 characters, so a 7 letter prefix would mean that maxtries should be 10.

Parameters
maxtries=the last part of the libref. Provide an integer value.
Version
9.2
Author
Allan Bowe

Definition in file mf_getuniquelibref.sas.