DATA Step Functions for Reading and Writing Metadata |
Returns the nth object type on the server.
rc = METADATA_GETNTYP(n, type);
Argument |
Direction |
Description |
n
|
in |
Numeric index value that indicates which row to return from the array;
see Array Parameters |
type
|
out |
Metadata type |
Value |
Description |
n
|
The number of objects that match the URI |
-1 |
Unable to connect to the metadata server |
-4 |
n is out of range |
options metaserver="a123.us.company.com"
metaport=8561
metauser="myid"
metapass="mypassword"
metarepository="myrepos";
data _null_;
length type $256;
rc=1;
n=1;
do while(rc>0);
/* Walk through all possible types on this server. */
rc=metadata_getntyp(n,type);
put type=;
n=n+1;
end;
run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.