DATA Step Functions for Reading and Writing Metadata |
Sets the specified attribute for the specified object.
rc = METADATA_SETATTR(uri, attr,
value);
Argument |
Direction |
Description |
uri
|
in |
Uniform Resource Identifier |
attr
|
in |
Attribute of the metadata object |
value
|
in |
Value of the specified attribute |
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 |
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;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.