At this point, all available
content for the define.xml file has been captured in the SAS representation
(31 data sets) of the CDISC Define-XML 2.0 standard. The SAS Clinical
Standards Toolkit provides a sample driver program, create_definexml.sas.
This program builds and validates the define-sdtm-3.1.2.xml file.
Submit the create_definexml.sas driver program.
In this driver program,
the call to the primary task macro requests that the default style
sheet provided by SAS (the source of which is CDISC) be copied to
the folder location containing the generated define.xml file. The
macro is located in the global standards library directory/standards/cdisc-definexml-2.0-1.7/macros directory.
Here is the macro:
%define_write(_cstCreateDisplayStyleSheet=1,
_cstHeaderComment=%str(Produced from SAS data using the SAS
Clinical Standards Toolkit &_cstVersion));
The final task in the
sample create_definexml.sas driver program is to call the %CSTUTILXMLVALIDATE
macro to perform the schema validation. This involves verifying that
the Define-XML define.xml file is valid structurally and syntactically
according to the XML schema.
Note: The steps contained in the
two sample driver programs create_sasdefine_from_source.sas and create_definexml.sas
are also available as combined steps in the single sample driver program
create_definexml_from_source.sas.
Note: The SAS Clinical Standards
Toolkit 1.7
does not contain validation checks to validate the SAS representation
of the Define-XML 2.0 standard. The only methodology included in the
SAS Clinical Standards Toolkit 1.7
to validate a Define-XML 2.0 file is XML schema validation.
The Results data set
provides process information and the location of the generated define-sdtm-3.1.2.xml
file. The Results data set confirms that no problems were found with
the file after validation of the file.