Previous Page | Next Page

DATA Step Functions for Reading and Writing Metadata

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);


Arguments

Argument Direction Description
uri
in Uniform Resource Identifier
prop
in Abstract property string
value
out Value of the specified property string
propuri
out URI of the property object that is associated with the input URI


Return Values

Value Description
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;


Related Functions

Previous Page | Next Page | Top of Page