DATA Step Functions for Reading and Writing Metadata |
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 |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.