METADATA_SETATTR Function

Sets the specified attribute for the specified object.

Syntax

rc = METADATA_SETATTR(uri, attr, value);

Required Arguments

uri (in)
specifies a Uniform Resource Identifier.
attr (in)
specifies an attribute of the metadata object.
value (in)
specifies a value for the specified attribute.

Return Values

0
Successful completion.
-1
Unable to connect to the metadata server.
-2
Unable to set the attribute.
-3
No objects match the URI.

Example

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

data _null_;
    rc=metadata_setattr("omsobj:Machine?@Name='bluedog'",
                        "Desc",
                        "My New Description");
    put rc=; 
run;