|
Parameter
|
Required
|
Description
|
|---|---|---|
|
_cstOutLib
|
Yes
|
The library reference
(LIBNAME) where the tables are created.
|
|
_cstSourceTables
|
Yes
|
The data set that contains
the SDTM metadata for the domains to include in the CRT-DDS file.
|
|
_cstSourceColumns
|
Yes
|
The data set that contains
the SDTM metadata for the domain columns to include in the CRT-DDS
file.
|
|
_cstSourceStudy
|
Yes
|
The data set that contains
the SDTM metadata for the studies to include in the CRT-DDS file.
|
|
_cstSourceValues
|
No
|
The data set that contains
the SDTM metadata for the Value Level columns to include in the CRT-DDS
file.
|
|
_cstSourceDocuments
|
No
|
The data set that contains
the SDTM metadata for the Document references to include in the CRT-DDS
file.
|
%crtdds_sdtmtodefine( _cstOutLib=srcdata, _cstSourceTables=sampdata.source_tables, _cstSourceColumns=sampdata.source_columns, _cstSourceValues=sampdata.source_values, _cstSourceDocuments=sampdata.source_documents, _cstSourceStudy=sampdata.source_study );
sample study library directory/cdisc-crtdds-1.0–1.7/programs&studyRootPath=sample study library directory/cdisc-sdtm-3.1.3–1.7/sascstdemodata&studyOutputPath=sample study library directory/cdisc-crtdds-1.0–1.7|
Metadata Type
|
SAS LIBNAME or Fileref
to Use
|
Reference Type
|
Path
|
Name of File
|
|---|---|---|---|---|
|
Input
|
||||
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/metadata
|
source_tables.sas7bdat
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/metadata
|
source_columns.sas7bdat
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/metadata
|
source_study.sas7bdat
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/metadata
|
source_values.sas7bdat
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/metadata
|
source_documents.sas7bdat
|
|
Output
|
||||
|
sourcedata
|
srcdata
|
libref
|
&studyOutputPath/data
|
|
sample study library directory/cdisc-sdtm-3.1.3–1.7/sascstdemodata/metadata|
Variable*
|
Required
|
Description
|
|---|---|---|
|
StudyName
|
Yes
|
The name of the study.
This value is used to populate the srcdata.study.studyname column.
|
|
DefineDocumentName
|
Yes
|
The name of the define
document to create. This value is used to populate the srcdata.definedocument.FileOID.
|
|
SASref
|
Yes
|
The reference that ties
the study name to the corresponding domains that are associated with
this study in the source_tables and source_columns data sets.
|
|
ProtocolName
|
Yes
|
The name of the protocol
for the study. This value is used to populate the srcdata.study.protocolname
column.
|
|
StudyDescription
|
Yes
|
The description of the
study. This value is used to populate the srcdata.study.studydescription
column.
Note: You cannot use commas, semicolons,
or quotation marks in the description.
|
|
Standard
|
Yes
|
The name of the standard
in the SAS Clinical Standards Toolkit. (For example, CDISC-SDTM.)
|
|
StandardVersion
|
Yes
|
The version of the standard
in the SAS Clinical Standards Toolkit. (For example, 3.1.3.)
|
|
FormalStandard
|
Yes
|
The formal name of the
standard as used in CRT-DDS. (For example, CDISC SDTM.)
|
|
FormalStandardVersion
|
Yes
|
The formal version of
the standard as used in CRT-DDS. (For example, 3.1.3.)
|
sample study library directory/cdisc-crtdds-1.0–1.7/data directory.
This location is represented in the driver program by the srcdata
library name.

%crtdds_write(_cstCreateDisplayStyleSheet=1,
_cstOutputEncoding=UTF-16,
_cstResultsOverrideDS=&_cstResultsDS);
%crtdds_write(_cstCreateDisplayStyleSheet=1);
sample study library directory/cdisc-crtdds-1.0–1.7/programs&studyRootPath=sample study library directory/cdisc-crtdds-1.0–1.7&studyOutputPath=sample study library directory/cdisc-crtdds-1.0–1.7|
Metadata Type
|
LIBNAME or Fileref to
Use
|
Reference Type
|
Path
|
Name of File
|
|---|---|---|---|---|
|
Input
|
||||
|
control
|
control
|
libref
|
&workpath
|
sasreferences.sas7bdat
|
|
sourcedata
|
srcdata
|
libref
|
&studyRootPath/data
|
|
|
Output
|
||||
|
referencexml
|
xslt01
|
filename
|
&studyOutputPath/sourcexml
|
define-v1-updated-html.xsl
|
|
results
|
results
|
LIBNAME
|
&studyOutputPath/results
|
write_results.sas7bdat
|
|
externalxml
|
extxml
|
filename
|
&studyOutputPath/sourcexml
|
define.xml
|
%let workPath=%sysfunc(pathname(work));
sample study library directory/cdisc-crtdds-1.0–1.7/data directory.
This location is represented in the driver program by the Srcdata
library name.
sample study library directory/cdisc-crtdds-1.0–1.7/sourcexml directory.
sample study library directory/cdisc-crtdds-1.0–1.7/results directory.

global standards library directory/standards/cdisc-crtdds-1.0-1.7/macrossample study library directory/cdisc-crtdds-1.0-1.7/programs/create_crtdds_define_pdf.sassample study library directory/cdisc-crtdds-1.0-1.7/programs/create_crtdds_define_pdf_adam.sas

N, 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. When the macro parameter _cstCheckLengths has the
value Y, the macro checks the actual value lengths of variables with
DataType=text against the lengths defined in the metadata templates.
If the lengths are short, a warning is written to the log file and
the Results data set.
%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, _cstCheckLengths=Y, _cstLang=en );
%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,
_cstSourceAnalysisResults=sampdata.source_analysisresults,
_cstFullModel=N,
_cstCheckLengths=Y,
_cstLang=en
);sample study library directory/cdisc-definexml-2.0.0–1.7/programs&studyRootPath=sample study library directory/cdisc-definexml-2.0.0–1.7/sascstdemodata&studyOutputPath=sample study library directory/cdisc-definexml-2.0.0–1.7&_cstSrcMetaDataFolder=%lowcase(&_cstTrgStandard)-&_cstTrgStandardVersion/metadata
%let _cstTrgStandard=CDISC-SDTM; %let _cstTrgStandardVersion=3.1.2;
%let _cstTrgStandard=CDISC-ADAM; %let _cstTrgStandardVersion=2.1;
|
Metadata Type
|
SAS LIBNAME or Fileref
to Use
|
Reference Type
|
Path
|
Name of File
|
|---|---|---|---|---|
|
Input
|
||||
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_study
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_tables
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_colums
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_codelists
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_values
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_documents
|
|
sourcemetadata
|
sampdata
|
libref
|
&studyRootPath/ &_cstSrcMetaDataFolder
|
source_analysisresults
|
|
Output
|
||||
|
sourcedata
|
srcdata
|
libref
|
&studyOutputPath/data/%lowcase(&_cstTrgStandard)-&_cstTrgStandardVersion
|
|
sample study library directory/cdisc-definexml-2.0.0–1.7/sascstdemodata/cdisc-sdtm-3.1.2/metadata|
Variable*
|
Required
|
Description
|
|---|---|---|
|
SASref
|
Yes
|
The reference that ties
the study name to the corresponding domains that are associated with
this study in the source_tables and source_columns data sets.
|
|
StudyName
|
Yes
|
The name of the study.
This value is used to populate the srcdata.study.studyname column.
|
|
StudyDescription
|
Yes
|
The description of the
study. This value is used to populate the srcdata.study.studydescription
column.
Note: You cannot use commas, semicolons,
or quotation marks in the description.
|
|
ProtocolName
|
Yes
|
The name of the protocol
for the study. This value is used to populate the srcdata.study.protocolname
column.
|
|
StudyVersion
|
Yes
|
The name of the define
document to create. This value is used to populate the srcdata.metadataversion.oid
column.
|
|
FormalStandardVersion
|
Yes
|
The formal version of
the standard as used in Define-XML 2.0. This value is used to populate
the srcdata.definedocument.standardversion column. (For example, 3.1.2.)
|
|
FormalStandardName
|
Yes
|
The formal name of the
standard as used in Define-XML 2.0. This value is used to populate
the srcdata.definedocument.standardname column. (For example, SDTM-IG.)
|
|
Standard
|
Yes
|
The name of the standard
in the SAS Clinical Standards Toolkit. (For example, CDISC-SDTM.)
|
|
StandardVersion
|
Yes
|
The version of the standard
in the SAS Clinical Standards Toolkit. (For example, 3.1.2.)
|
sample study library directory/cdisc-definexml–2.0.0-1.7/data/cdisc-sdtm-3.1.2
%define_write(_cstCreateDisplayStyleSheet=1,
_cstOutputEncoding=UTF-8,
_cstResultsOverrideDS=&_cstResultsDS);%define_write(_cstCreateDisplayStyleSheet=1);
sample study library directory/cdisc-definexml-2.0.0–1.7/programs &studyRootPath=sample study library directory/cdisc-definexml-2.0.0–1.7&studyOutputPath=sample study library directory/cdisc-definexml-2.0.0–1.7|
Metadata Type
|
LIBNAME or Fileref to
Use
|
Reference Type
|
Path
|
Name of File
|
|---|---|---|---|---|
|
Input
|
||||
|
control
|
control
|
libref
|
&workpath
|
sasreferences
|
|
sourcedata
|
srcdata
|
libref
|
&studyRootPath/data/&_cstSrcDataFolder
|
|
|
Output
|
||||
|
referencexml
|
xslt01
|
filename
|
define-2-0-0.xsl
|
|
|
results
|
results
|
libref
|
&studyOutputPath/results
|
write_results
|
|
externalxml
|
extxml
|
filename
|
&studyOutputPath/sourcexml
|
&_cstDefineFile..xml
|
|
report
|
html
|
filename
|
&studyOutputPath/sourcexml
|
&_cstDefineFile..html
|
_cstSrcDataFolder=%lowcase(&_cstTrgStandard)-&_cstTrgStandardVersion
%let _cstTrgStandard=CDISC-SDTM; %let _cstTrgStandardVersion=3.1.2; %let _cstDefineFile=define-sdtm-3.1.2.xml;
%let workPath=%sysfunc(pathname(work));
sample study library directory/cdisc-definexml–2.0.0-1.7/data/cdisc-sdtm-3.1.2 directory.
This location is represented in the driver program by the Srcdata
library name.
sample study library directory/cdisc-definexml–2.0–1.7/sourcexml directory.
sample study library directory/cdisc-definexml–2.0-1.7/results directory.
proc xsl in=extxml xsl=xslt01 out=html; run;



%odm_write(_cstOutputEncoding=UTF-16, _cstResultsOverrideDS=&_cstResultsDS);
%odm_write();
sample study library directory/cdisc-odm-1.3.0–1.7/programs&studyRootPath=sample study library directory/cdisc-odm-1.3.0–1.7&studyOutputPath=sample study library directory/cdisc-odm-1.3.0–1.7|
Metadata Type
|
SAS LIBNAME or Fileref
to Use
|
Reference Type
|
Path
|
Name of File
|
|---|---|---|---|---|
|
Input
|
||||
|
sourcedata
|
srcdata
|
libref
|
&studyRootPath/data
|
|
|
Output
|
||||
|
results
|
results
|
libref
|
&studyOutputPath/results
|
write_results.sas7bdat
|
|
externalxml
|
extxml
|
filename
|
&studyOutputPath/sourcexml
|
odm_sample_out.xml
|
sample study library directory/cdisc-odm-1.3.0–1.7/data directory.
This location is represented in the driver program by the Srcdata
library name.
sample study library directory/cdisc-odm-1.3.0–1.7/sourcexml directory.
sample study library directory/cdisc-odm-1.3.0–1.7/results