GetNamespaces

Short Description

Gets the namespaces defined on the SAS Metadata Server.

Category

Management methods

Syntax

rc=GetNamespaces(namespaces,flags,options);

Parameters

Method 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:
  • The REPOS namespace contains the repository metadata types.
  • The SAS namespace contains metadata types describing application elements.

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