Help using Base SAS procedures

Getting Name from Metadata ID

Reply
Contributor
Posts: 26

Getting Name from Metadata ID

Hi all

i have these things in logs all the time ...A0000001.A5STQABL ... metadata ID. i want to map these things to some logical names.

is there a way to get logical name for these metadata id.

for instance , i had to go into the SMC to check that the above is mapped to "SAS Web Infrastructure Platform"

i did something like below and it didnt work, dont know if i am doing this correctly .

data _null_;

    length id $20

    type $256;

    rc=metadata_resolve("omsobj:A0000001.A5STQABL",type,id);

    put rc=;

    put id=;

    put type=;

run;

o/p is rc=0 ; id=;type=;

can somebody let me know how to get around this ?

Thanks

Keds

Trusted Advisor
Posts: 1,300

Re: Getting Name from Metadata ID

data _null_;

length name $ 128;

rc=metadata_getattr("omsobj:A0000001.A5STQABL","Name",name);

put name=;

run;

Ask a Question
Discussion stats
  • 1 reply
  • 178 views
  • 0 likes
  • 2 in conversation