The create_crtdds_define.sas
driver program sets up the required environment variables and library
references to initiate the crtdds_write macro. This macro reads the
39 data sets that comprise the SAS representation of the CDISC CRT-DDS
1.0 model, and converts that information to the required define.xml
structure. If source metadata or data are missing, then empty elements
and attributes are not created in the define.xml file. The inputs
and outputs are specified in the SASRferences data set.
This table lists the
optional parameters that can be set when submitting the macro.
Parameters for the crtdds_write.sas Macro
|
|
|
_cstCreateDisplayStyleSheet
|
|
Specifies whether the
macro creates a style sheet in the same directory as the output XML
file. If the value is 1, then the macro looks in the provided SASReferences
file for a record with a type of referencexml and a subtype of stylesheet,
and then uses that file. If the value is 0, then the macro does not
create the XSL, even if one is specified in the SASReferences file.
The default setting is 1.
|
|
|
XML encoding to use
for the CRT-DDS file that is created. By default, UTF-8 is used.
|
|
|
A short comment added
at the top of the CRT-DDS file. If no comment is provided, then a
default comment is used. The default comment notes that the file was
produced by the SAS Clinical Standards Toolkit.
|
|
|
Designates [LIBNAME.]member
as the name of the Results data set. If this parameter is omitted
(default setting), then the Results data set specified by the &_cstResultsDS
global macro variable is used.
|
|
|
Specifies the level
of error reporting. Valid values are Info, Warning, Error, and Fatal
Error. The default setting is Info.
|
Here is an example of
a call to the crtdds_write.sas macro:
%crtdds_write(_cstCreateDisplayStyleSheet=1,
_cstOutputEncoding=UTF-16,
_cstResultsOverrideDS=&_cstResultsDS);
In this example, a default
style sheet is generated in the same directory as the XML output based
on the information in the SASReferences data set. XML encoding is
set to UTF-16, and process results are written to the default &_cstResultsDS
data set.
Here is the call to
the macro from the sample create_crtdds_define.sas driver program:
%crtdds_write(_cstCreateDisplayStyleSheet=1);
The call creates a display
style sheet and uses default values for the parameters.
The create_crtdds_define.sas
driver program is ready to run on any of the CDISC SDTM sample studies.
The driver program can be run interactively or in batch.
The driver program is
located in:
!sasroot/../../SASClinicalStandardsToolkitCRTDDS10/1.4/sample/cdisc-crtdds-1.0/programs
Multiple tasks can be
executed in any SAS Clinical Standards Toolkit driver program. The
create_crtdds_define.sas driver program calls both the crtdds_write
macro to create the define.xml file, and the crtdds_xmlvalidate macro
to validate the syntax of the generated define.xml file.
For
more information about the crtdds_xmlvalidate macro, see Validation of XML-Based Standards.