DATA Step, Macro, Functions and more

Howto get metadata type of URI using data step functions

Reply
Regular Contributor
Posts: 187

Howto get metadata type of URI using data step functions

Hi,

How can I get the metadata type of a metadata object whose URI I have?
I need to use the METADATA_ data step functions.

Thanks,
Bart
Super Contributor
Posts: 474

Re: Howto get metadata type of URI using data step functions

Posted in reply to bheinsius
Anything wrong with the METADATA procedure?

If not, check page 57 of the Open Metadata Interface here:
http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_91/base_omi_7253.pdf

Cheers from Portugal.

Daniel Santos @ www.cgd.pt
N/A
Posts: 0

Re: Howto get metadata type of URI using data step functions

Posted in reply to bheinsius
Try the metata_resolve function, here's an example:

data _null_;

length id $20
type $256;

rc=metadata_resolve("omsobj:A50URHMK.BU000001",type,id);
put type=;
run;

The type variable will contain what exactly what you're looking for

Cheers

Paul
Regular Contributor
Posts: 187

Re: Howto get metadata type of URI using data step functions

Posted in reply to deleted_user
metadata_resolve did the trick, thanks.

-Bart
Ask a Question
Discussion stats
  • 3 replies
  • 137 views
  • 0 likes
  • 3 in conversation