DATA Step Functions for Reading and Writing Metadata |
Returns the Id and Type attributes of the specified folder object.
Syntax |
rc = METADATA_PATHOBJ(proj, path, deftype, type, ID);
Arguments |
Return Values |
Value | Description |
---|---|
n |
Number of objects that match the URI |
0 | Successful completion |
-1 | Unable to connect to the metadata server |
-2 | Syntax error in the path |
-3 | Named object not found in the path |
Examples |
options metaserver="a123.us.company.com" metaport=8561 metauser="myid" metapass="mypassword" metarepository="myrepos"; data _null_; length id $20; length type $256; proj=""; deftype=""; id=""; type=""; rc=metadata_pathobj(proj,"/Samples/Stored Processes/Sample(StoredProcess)", deftype,type,id); put rc=; put id=; put type=; run;
options metaserver="a123.us.company.com" metaport=8561 metauser="myid" metapass="mypassword" metarepository="myrepos"; data _null_; length id $20; length type $256; proj=""; deftype="StoredProcess"; id=""; type=""; rc=metadata_pathobj(proj,"/Samples/Stored Processes/Sample, deftype,type,id); put rc=; put id=; put type=; run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.