Will be back once I’ve worked out how to do this in pure macro!

data_Null_; /* get LIBREF from metadata LIBNAME */
      lengthLibRef $ 8 ;
      rc=metadata_getattr(“omsobj:[email protected]=’My Meta Library'”,“Libref”,LibRef);
      putLibref=;

run;