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

Returns an unused fileref. More...

Go to the source code of this file.

Detailed Description

Use as follows:

filename mcref0 temp;
filename mcref1 temp;

%let fileref=%mf_getuniquefileref();
%put &=fileref;

which returns:

mcref2

= first part of fileref. Remember that filerefs 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_getuniquefileref.sas.