To get objects from
all repositories that are registered on the SAS Metadata Server (foundation,
custom, and project), set both the OMI_DEPENDENCY_USES (8192) and
OMI_DEPENDENCY_USED_BY (16384) flags.
The following is an
example of a GetMetadataObjects request that gets objects of metadata
type PhysicalTable from all repositories:
<GetMetadataObjects>
<!-- Reposid parameter specifies host repository -->
<Reposid></Reposid>
<Type>PhysicalTable</Type>
<Objects/>
<NS>SAS</NS>
<!-- Specify OMI_DEPENDENCY_USES (8192) and
OMI_DEPENDENCY_USED_BY (16384) flags -->
<Flags>24576</Flags>
<Options/>
</GetMetadataObjects>
In the request, note
the following:
-
It is not necessary to specify
a target repository in the <REPOSID> element. When the <REPOSID>
element is blank, the method gets objects from all repositories, beginning
with the foundation repository, then custom repositories, and then
project repositories. Within each category, the repositories are listed
in the order in which they were registered. When a repository identifier
is specified in the <REPOSID> parameter, the SAS Metadata Server
gets objects from that repository before it gets objects from other
repositories. The specified repository can be the foundation repository,
a custom repository, or a project repository.
-
The <TYPE> element specifies
the metadata type of the objects to list.
-
The <FLAGS> element specifies
the sum of the numeric values representing the OMI_DEPENDENCY_USES
and OMI_DEPENDENCY_USED_BY flags (8192 + 16384 = 24576).
-
Output is returned in the <OBJECTS>
element.