Previous Page | Next Page

DATA Step Functions for Reading and Writing Metadata

METADATA_GETNTYP Function

Returns the nth object type on the server.


Syntax

rc = METADATA_GETNTYP(n, type);


Arguments

Argument Direction Description
n
in Numeric index value that indicates which row to return from the array; see Array Parameters
type
out Metadata type


Return Values

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


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;

Previous Page | Next Page | Top of Page