26 %macro mf_getEngine(libref
    28   %local dsid engnum rc engine;
    31   %let libref = %upcase(%scan(&libref, 1, %str(.)));
    33   %let dsid=%sysfunc(open(sashelp.vlibnam(where=(libname=
"%upcase(&libref)")),i));
    34   %
if (&dsid ^= 0) %then %
do;
    35     %let engnum=%sysfunc(varnum(&dsid,ENGINE));
    36     %let rc=%sysfunc(fetch(&dsid));
    37     %let engine=%sysfunc(getvarc(&dsid,&engnum));
    38     %put &libref. ENGINE is &engine.;
    39     %let rc= %sysfunc(
close(&dsid));