Creating a Custom Domain from an Existing Domain

Problem

You need to create a domain for a study, but there is not a standard domain template that meets your needs. However, there is a domain in another study that meets your needs.

Solution

You can create a new custom domain using an existing domain.
CAUTION:
Use this process of creating a custom domain instead of using the standard SAS Data Integration Studio copy and paste actions. The copy and paste actions do not copy important domain metadata.

Tasks

To create a custom domain using an existing domain, complete the following steps:
  1. In the Folders tree, right-click on the clinical component folder in which you want to create the custom domain, and select Newthen selectCustom Domain From Existing. The New Custom Domain From Existing Domain wizard opens. The Domain Location page appears.
  2. By default, the Location field is set to the folder in which you initiated the action. If you want to change the default location of the domain, click Browse to select a new location.
    Note: A domain can be created only in a folder that is a clinical component root folder, or in a subfolder of a clinical component root folder. The name of the clinical component that is associated with the domain location is displayed in the Clinical Component field. If the domain location does not contain the clinical component, then the Clinical Component field is empty. You must select a valid domain location before you can proceed in the wizard.
    Click Next. The Data Standard Selection page appears.
  3. Select a data standard from the list of standards. The data standards in this list are associated with the clinical component in which the domain is to be created.
    All domains in a folder must be associated with the same data standard. If you want to create a copy of the domain using a different version of the data standard, then you must create the copy in a different folder. If a domain already exists in the target folder, and that domain is associated with a different data standard than what you just specified in the wizard, then a warning message is displayed. You must choose a valid data standard before you can proceed.
    Click Next. The Domain Selection page appears.
  4. The Available Domains by Clinical Component list displays the clinical components and their domains for the selected data standard. Expanding a clinical component node displays all of the domains in the clinical component. Both standard and custom domains can be selected. You can select only one domain.
    Click Next. The General Information page appears.
  5. The default values on this page are determined by the domain that you selected. You can edit the name and identifier for the new domain.
    Note: The name and identifier cannot be the same as the name or identifier of a domain template in the data model. When you click Next, the wizard validates the name and identifier. A warning message is displayed if either the name or identifier fails the validation.
    Click Next. The Domain Information page appears.
  6. The default values on this page are determined by the domain that you selected. You can edit the property values for the new domain.
    Click Next. The Library Selection page appears.
  7. Select a library to assign to the domain. The library can be any library in the clinical component. If no libraries exist within the clinical component root folder or within a subfolder of the clinical component root folder, then a message is displayed.
    Note: You can create a domain without assigning a library. Later, you can create a library and assign it to the domain. However, if you use the domain in a job without first assigning a library, the job fails. The job generates errors that indicate you must assign a library. If you attempt to open the domain to view the contents and records, the open fails, and an error message is displayed.
    Click Next. The Column Elaboration page appears.
  8. Edit the properties for selected columns. The Selected Columns table displays all of the selected columns and their properties. Not all properties can be edited. Editable properties vary by data model.
    You can change the column order. Select a column, and then click Move Up or Move Down to adjust its order.
    If two or more columns are keys, you can change the key order. Click Order Keys. The Order Domain Keys window appears. Select a key, and then click Move Up or Move Down to adjust its order. Click OK to save the key order.
  9. Click Finish to create the new domain.