METADATA_GETPROP Function

Returns the value and Uniform Resource Identifier (URI) of the specified property for the specified object.

Syntax

rc = METADATA_GETPROP(uri, prop, value, propuri);

Required Arguments

uri (in)
specifies a Uniform Resource Identifier.
prop (in)
specifies an abstract property string.
value (out)
returns the value of the specified property string.
propuri (out)
returns the URI of the property object that is associated with the input URI.

Return Values

0
Successful completion.
-1
Unable to connect to the metadata server.
-2
Named property is undefined.
-3
No objects match the specified URI.

Example

options metaserver="a123.us.company.com"
	metaport=8561
	metauser="myid"
	metapass="mypassword"
	metarepository="myrepos";

data _null_;
    length value $200
           propuri $200;
    rc=metadata_getprop("omsobj:Machine?@Name='bluedog'","Property
1",value,propuri);
    if rc=0 then put value= propuri=;
run;