Yes of course you can connect to a metadata defined library from PC SAS - just two statements required!
options metaserver="YourMetaserver.domain"
metaport=8561 /* as appropriate */
metauser="YourMetadataUserID"
metapass="YourMetadataP*ssw*rd";
libname YourLibref meta library="The library name given in metadata";
Personally I prefer to work with librefs than remember the library names so I wrote the below to assign as appropriate (you need to be connected to the metadata server first, via the options statement above)
%macro assign_lib(
libref= /* libref that needs to be assigned */
);
%if %sysfunc(libref(&libref)) %then %do;
data _null_;
length lib_uri LibName $200;
call missing(of _all_);
nobj=metadata_getnobj("omsobj:SASLibrary?@Libref='&libref'",1,lib_uri);
if nobj=1 then do;
rc=metadata_getattr(lib_uri,"Name",LibName);
call symputx('LIB',libname,'L');
end;
else if nobj>1 then do;
putlog "ERROR: More than one library registered with libref &libref";
end;
else do;
putlog "ERROR: Library &libref not found in metadata";
end;
run;
libname &libref meta library="&lib";
%if %sysfunc(libref(&libref)) %then %do;
%put WARNING: Library &libref not assigned!;
%end;
%end;
%else %put NOTE: Library &libref is already assigned;
%mend;
use as follows:
%assign_lib(libref=SVRLIBRF)