Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mf_getengine.sas File Reference

Returns the engine type of a SAS library. More...

Go to the source code of this file.

Detailed Description

Usage:

%put %mf_getengine(SASHELP);

returns:

V9

A note is also written to the log. The credit for this macro goes to the contributors of Chris Hemedingers blog post

Parameters
librefLibrary reference (also accepts a 2 level libds ref).
Returns
output returns the library engine for the FIRST library encountered.
Warning
will only return the FIRST library engine - for concatenated libraries, with different engines, inconsistent results may be encountered.
Version
9.2
Author
Allan Bowe

Definition in file mf_getengine.sas.