DATA Step Functions for Reading and Writing Metadata |
Modifies an association list for an object.
Syntax |
rc = METADATA_SETASSN(uri, asn, mod, auri-1<,...auri-n>);
Arguments |
Argument | Direction | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
uri |
in | Uniform Resource Identifier | ||||||||||
asn |
in | Association name | ||||||||||
mod |
in |
Modification to be performed on the metadata object; values include
the following:
|
||||||||||
auri-1<,...auri-n> | in | List of the URIs of the associated objects; see Array Parameters. |
*A single association refers to an association name with a 0-to-1 or 1-to-1 cardinality. Only one association of that name is supported between the specified metadata types.
A multiple association refers to an association name with a 0-to-many or 1-to-many cardinality. Many associations between the specified metadata types is supported.
For more information about associations and cardinality, see SAS Open Metadata Interface: Reference.
Return Values |
Number of objects matching the input URI.
Example |
options metaserver="a123.us.company.com" metaport=8561 metauser="myid" metapass="mypassword" metarepository="myrepos"; data _null_; length uri $256; rc=0; /* Create a TextStore object. */ rc=metadata_newobj("TextStore", uri, "My TextStore"); put uri=; rc=metadata_setassn("omsobj:Machine?@Name='bluedog'", "Notes", "Append", uri); put rc=; rc=metadata_setassn("omsobj:Machine?@Name='bluedog'", "Notes", "Remove", uri); put rc=; run;
Related Functions |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.