Previous Page | Next Page

Metadata Access (IOMI Interface)

GetNamespaces

Gets the namespaces defined on the SAS Metadata Server.

Category: Management methods


Syntax

rc=GetNamespaces(namespaces,flags,options);


Parameters

Parameter Type Direction Description
rc N out Return code for the method. For more information, see Return Code.
namespaces C out Returned list of namespaces.
flags L in Passed indicator for flags. No flags are currently defined. For no flags, a 0 should be passed.
options C in Passed indicator for options. No options are currently defined.


Details

A namespace specifies a group of related metadata types that can be accessed by the SAS Open Metadata Interface. The NAMESPACES parameter returns the name of the namespaces that are currently defined in the SAS Repository Manager.

The SAS Open Metadata Interface provides the following namespaces:


Example 1: Standard Interface

The following is an example of how to issue the GetNamespaces method regardless of the programming environment. The request gets the namespaces in the current SAS Repository Manager.

namespaces="";
flags=0;
options="";
rc=GetNamespaces(ns,flags,options);

<!-- XML string returned in ns parameter -->
<Namespaces>
   <Ns Name="SAS"/>
   <Ns Name="REPOS"/>
</Namespaces>


Example 2: DoRequest Method

The following is an example of an XML string that shows how to format the request in example 1 for the INMETADATA parameter of the DoRequest method.

<!-- XML string for inMetadata= parameter of DoRequest method call -->
<GetNamespaces>
   <Namespaces/>
   <Flags>0</Flags>
   <Options/>
</GetNamespaces>


Related Methods

Previous Page | Next Page | Top of Page