Macros for SAS Application Developers 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:


A blank value is returned if no usable libname is determined.

[in]prefix=(mclib) first part of the returned libref. As librefs can be as long as 8 characters, a maximum length of 7 characters is premitted for this prefix.
[in]maxtries=Deprecated parameter. Remains here to ensure a non-breaking change. Will be removed in v5.
Allan Bowe

Definition in file