Metadata language elements
that request specific object instances require you to identify the
object instance by its primary metadata type and metadata identifier
or name. As long as you are using the correct metadata type and identifier
or name, no additional information is required to retrieve the specified
object instance.
For SAS language elements
that read metadata, the type dictionary makes it easy to identify
the primary metadata type representing the object in the SAS Metadata
Repository. Open the type definition of the object that you are interested
in in the dictionary. The object’s primary metadata type is
specified in the
Metadata Type field on
the
Advanced tab of its properties.
For information about
metadata identifiers or names, see What Is a Metadata Identifier?. Also, see Obtaining Metadata Names and Identifiers.
PROC METADATA enables
you to get specific object instances by submitting the SAS Open Metadata
Interface GetMetadata method. Clients that use PROC METADATA can set
the OMI_FULL_OBJECT flag in the GetMetadata request to return an object’s
full logical metadata definition. Metadata DATA step functions do
not support the ability to return an object’s full logical
metadata definition.
For an example of a PROC METADATA request that sets the
OMI_FULL_OBJECT flag, see Request the Metadata for One Object.
Metadata requests that
list object instances should use the values specified in the type
definition’s
MetadataType and
TypeName fields. Many type definitions use the same
metadata type as their primary metadata object (for example, Information
Map and SAS Report). The
TypeName value is
unique across type definitions. The
TypeName value is specified on the
Advanced tab
of a type definition’s properties. The
TypeName value maps to the PublicType= attribute of the primary metadata
object in logical metadata definitions that conform to the type dictionary.
SAS provides the METADATA_GETNOBJ
function for getting metadata objects in a SAS Metadata Repository.
The METADATA_GETNOBJ function and many other metadata DATA step functions
use a uniform resource identifier (URI) to identify an object. To
list objects using the type dictionary, use this URI form:
omsobj: type?@PublicType='value'
The
type is the
MetadataType value, and
value is the
TypeName value from the type definition.
For more information
about URIs, see What Is a URI?. Also, see METADATA_GETNOBJ Function.
SAS provides the METADATA_PATHOBJ
function for getting metadata objects in folders. Specify the
TypeName= value in the
DefType
argument.
For more information, see METADATA_PATHOBJ Function.