The data for the authentication domains to be created is defined directly as XML within the 'in' option of PROC METADATA. No external data source is used for this operation.
1 Code Block
OPTIONS
Explanation : This block configures the connection parameters to the SAS metadata server. It specifies the host, port, user credentials ('sasadm @saspw' with 'Password'), the repository ('Foundation'), and the communication protocol ('BRIDGE'). These options are essential for PROC METADATA to authenticate and interact correctly with the target SAS environment.
Explanation : This block executes PROC METADATA to create authentication domains. The XML content provided via the 'in' option specifies the names ('AuthDomain1', 'AuthDomain2', 'AuthDomainn'), descriptions, and public types of the domains to be added to the SAS metadata repository. The 'Reposid' is dynamically populated by the $METAREPOSITORY system variable, ensuring the domains are created in the correct location. Additional flags and options are related to metadata management.
<AuthenticationDomain Name="AuthDomain1" Desc="Description for AuthDomain1" PublicType="AuthenticationDomain" UsageVersion="1000000"/>
6
<AuthenticationDomain Name="AuthDomain2" Desc="Description for AuthDomain2" PublicType="AuthenticationDomain" UsageVersion="1000000"/>
7
<AuthenticationDomain Name="AuthDomainn" Desc="Description for AuthDomain3" PublicType="AuthenticationDomain" UsageVersion="1000000"/>
8
</Metadata>
9
<Reposid>$METAREPOSITORY</Reposid>
10
<NS>SAS</NS>
11
<Flags>268435456</Flags>
12
<Options/>
13
</AddMetadata>
14
';
15
RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Author: Greg Wootton Date: 02MAY2017
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.