METADATA_GETNTYP Function
Returns the nth object type on the server.
Syntax
rc = METADATA_GETNTYP(n, type);
Required Arguments
- n (in)
-
specifies a numeric
index value that indicates which row to return from the array; see
Array Parameters.
- type (out)
-
returns the metadata
type in the specified row.
Return Values
- n
-
The number of objects
that match the URI.
- -1
-
Unable to connect to
the metadata server.
- -4
-
n is out of range.
Example
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;