Before you can use server metadata, you
must first connect to a metadata server by using a metadata configuration
file. For more information, see
Metadata Configuration Files.
If you created your
configuration files by using the ITConfig utility, then the SAS Object
Manager connects to the metadata server automatically when you call
a method or interface that requires metadata.
If your configuration
files are not in the default location and the location is not stored
in the Windows registry, then you must specify the location by using
the SetMetadataFile method. The SetMetadataFile method has three parameters:
the full path to the system configuration file, the full path to the
user configuration file (optional), and a flag that indicates whether
to store the file path values in the registry.
Note: An application should call
the SetMetadataFile method one time only. To create a new metadata
server connection, use the CreateOMRConnection method.
Note: The user ID that is used
to log on to SAS is determined when the object is launched. After
the object is launched, the user ID cannot be changed.