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