The create_sasdefine_from_source.sas
driver program sets up the required environment variables and library
references to initiate the define_sourcetodefine macro. This macro
extracts data from the SDTM or ADaM metadata files. (
For
more information about the source_tables and source_columns data sets,
see Source Metadata.) Depending on the available source information, the macro
attempts to convert the information into the tables that represent
the SAS interpretation of the CDISC Define-XML 2.0 model.
When the macro parameter
_cstFullModel has the value
N
, which
is the default, only the 31 Define-XML 2.0 core tables are created.
Otherwise, all 46 tables in the Define-XML 2.0 reference standard
are created, but only those tables with available data are populated.
The other tables contain zero observations.
Note: For more information about
the define_sourcetodefine macro, see the
SAS Clinical Data
Standards Toolkit: Macro API Documentation.
Here is an example of
a call to the define_sourcetodefine macro:
%define_sourcetodefine(
_cstOutLib=srcdata,
_cstSourceStudy=sampdata.source_study,
_cstSourceTables=sampdata.source_tables,
_cstSourceColumns=sampdata.source_columns,
_cstSourceCodeLists=sampdata.source_codelists,
_cstSourceDocuments=sampdata.source_documents,
_cstSourceValues=sampdata.source_values,
_cstFullModel=N,
_cstLang=en
);
In this example, the
define_sourcetodefine macro writes all of the Define-XML 2.0 tables
to the Srcdata library.
The create_sasdefine_from_source.sas
driver program is provided with the SAS Clinical Standards Toolkit,
and it is ready to run on any of the SDTM or ADaM sample studies.
The driver program can be run interactively or in batch. To run the
driver program interactively, start a SAS session, and load the driver
program into the SAS editor.
The driver program is
located here:
sample study library directory/cdisc-definexml-2.0.0–1.6/programs