The LIBNAME statement is a SAS global statement that manipulates librefs. In IMLPlus, it is normally the case that you must place a SAS global statement in a SUBMIT block or prefix the statement with the @ character. However, as of IML Studio 12.3, IMLPlus provides full support for the LIBNAME statement as a native IMLPlus statement.
In addition to the standard syntax of the LIBNAME statement, IMLPlus provides an IMLPlus-specific form that accepts an IML expression:
libname libref (SAS-library-expression);
The argument SAS-library-expression must evaluate to a scalar character matrix. IMLPlus processes the LIBNAME statement as if it were
libname libref "evaluated-SAS-library-expression";
Example:
run GetInstallationDirectory( path ); path = path + "Data Sets"; libname samples (path);