Previous Page | Next Page

DATA Step Functions for Reading and Writing Metadata

METADATA_SETATTR Function

Sets the specified attribute for the specified object.


Syntax

rc = METADATA_SETATTR(uri, attr, value);


Arguments

Argument Direction Description
uri
in Uniform Resource Identifier
attr
in Attribute of the metadata object
value
in Value of the specified attribute


Return Values

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


Related Functions

Previous Page | Next Page | Top of Page