Transforming SDTM Domains or ADaM Data Sets into a Define.xml File

Overview: Transforming SDTM Domains or ADaM Data Sets into a Define.xml File

The CDISC-Define Creation transformation transforms SDTM domains or ADaM data sets into a define.xml file. The define.xml file complies with the CRT-DDS standard.
If the SDTM domain references a value-level metadata table or supplemental documents table, it is included in the define.xml file.
Note: For detailed information about creating a job with a transformation, see the SAS Data Integration Studio: User's Guide or the SAS Data Integration Studio online Help.

Register a New Document File

Before you can create a job that uses a define.xml file, you must register a new document file. The document file references the target define.xml file.
Note: The target define.xml file is created on the server. If you want to open the target define.xml file from the job, then the target file must be in a shared location that can be accessed from the computer on which you are using SAS Data Integration Studio. An example of a shared location is a network drive.
To register a new document file, perform the following steps:
  1. In the Folders tree, right-click a folder, and then select Newthen selectDocument.
    The New Document dialog box appears.
  2. Enter a name and an optional description.
  3. (Optional) Click Browse adjacent to the Location field, and then navigate to the location in which to store the document.
  4. Click Browse adjacent to the File field, and then navigate to the location of the define.xml file.
  5. Click OK.

Transform SDTM Domains or ADaM Data Sets into a Define.xml File

To transform SDTM domains or ADaM data sets into a define.xml file that complies with the CRT-DDS standard, perform the following steps:
  1. Create an empty job.
    For detailed information about creating an empty job, see the SAS Data Integration Studio: User's Guide or the SAS Data Integration Studio online Help.
  2. In the Transformations tree, expand Clinical, and then drag and drop CDISC-Define Creation onto the diagram.
    CDISC-Define Creation transformation on the Diagram tab
  3. In the diagram, double-click CDISC-Define Creation.
    The CDISC-Define Creation Properties dialog box appears.
    For detailed information about the Properties dialog box, see the SAS Data Integration Studio: User's Guide or the SAS Data Integration Studio online Help.
  4. Click the Tables tab.
  5. From the Data Standard Type drop-down list, select the domain to include in the define.xml file.
  6. From the Study/Submission drop-down list, select a study or submission.
    The Tables table displays all data tables that are associated with the study or submission.
  7. Select one or more data tables.
  8. If you selected multiple data tables and want to change the order of the data tables in the define.xml file, perform the following steps:
    1. Click Order Tables.
      The Order Tables dialog box appears.
    2. Select a data table, and click Move Up and Move Down to change the order.
    3. Click OK.
  9. (Optional) Click the Generation tab, and perform the following steps:
    1. Enter the header comment text for the define.xml file.
    2. Choose whether to create a define.pdf file and whether to create internal hyperlinks.
    3. Select a define version, output encoding, and log level.
      Note: You can enter a value for the output encoding, such as Shift-JIS. However, the value must be a valid encoding. No check is made to ensure that it is valid.
    4. Select an output style sheet to use.
      Note: By default, no output style sheet is used. You can use a default style sheet provided by SAS Clinical Standards Toolkit, or you can select your own style sheet.
    5. Choose whether to save the work tables to a permanent location, and navigate to the location.
      Tip
      Saving the work table to a permanent location enables you to further customize the define.xml file. For more information, see Adding Information to the Define.xml File.
      Tip
      You might need to enlarge the dialog box to see these controls.
  10. (Optional) Click the Reports tab, and perform the following steps:
    1. Select the Generate Report check box.
    2. Perform one of the following steps:
      • Click Browse adjacent to Browse to Folder, and then navigate to a server folder.
      • In the Server Folder field, enter the name of a server folder.
      The folder must be on the server and must not be a local folder.
    3. Enter a name for the report in the Report File Name field, and then specify the report output format.
    4. To limit the number of records to include in the report, enter a number in the Limit # of records to field.
      If you leave this field blank, all records are included in the report.
    5. Select the panels to include in the report and whether informational messages are included.
  11. Click OK.
  12. From the Folders tree, drag and drop the define.xml file onto the diagram.
  13. To connect the CDISC-Define Creation transformation to the define.xml file, drag and drop the cursor from the output port of the transformation to the define.xml file.
  14. To store the Results work table in a permanent location, perform the following steps:
    Note: By default, the Results work table is written to a temporary work location.
    1. Right-click the Work Table icon (Work Table icon), and then select Properties.
      The Properties dialog box appears.
      For detailed information about the Properties dialog box, see the SAS Data Integration Studio: User's Guide or the SAS Data Integration Studio online Help.
    2. Click the Physical Storage tab, select a SAS library for the Location field, and then click OK.
  15. Save and run the job.
    SAS Data Integration Studio generates the SAS code for transforming, and then submits the code to SAS. The define.xml file is created. If a define.xml already exists in that location, then it is overwritten (if the permissions on the file allow it to be overwritten). The results are written to the CDISC-Define Creation Results table.
  16. Review the Results table, and check for errors or warnings.
    You can view the define.xml file by navigating to the location where you created the document file, and then opening the define.xml file with a web browser. If the web browser fails to open the define.xml file, and displays an error message about an invalid path, then the define.xml file is located on a drive to which you do not have access. To resolve the problem, move the define.xml file.