The SAS Clinical Standards
Toolkit provides a driver program, import_sascrtdds_fromxml_export_toxml.sas,
to demonstrate import and export of extensive CRT-DDS metadata.
This program is located
in:
sample study library directory/cdisc-crtdds-1.0–1.5/programs
This program provides
the same process setup function supported in most SAS Clinical Standards
Toolkit driver modules, using a SASReferences data set that defines
process inputs and outputs, and allocating all SAS librefs and filerefs.
In this sample driver program, the SASReferences data sets are not
created in the program, but rather read from a permanent SAS data
set.
Here is the general
workflow of this sample driver program:
-
Call the cstutil_processsetup
macro to set process paths and perform required library and file allocations.
The cstutil_processsetup
macro is called with these parameters:
-
_cstSASReferencesLocation=&studyRootPath/control
-
_cstSASReferencesName=import_sasreferences
-
Call the crtdds_xmlvalidate
macro to validate the CRT-DDS file (define_import.xml) to be imported.
-
Call the crtdds_read
macro to import the CRT-DDS file (define_import.xml) that was validated
in step 2 to the CRT-DDS SAS data sets in the Work library.
-
Call the cstutil_processsetup
macro to set process paths and perform required library and file allocations.
The cstutil_processsetup
macro is called with these parameters:
-
_cstSASReferencesLocation=&studyRootPath/control
-
_cstSASReferencesName=export_sasreferences
-
Call the crtdds_write
macro to export the CRT-DDS SAS data sets in the Work library to the
CRT-DDS file (define_export.xml).
-
Call the crtdds_xmlvalidate
macro to validate the CRT-DDS file (define_export.xml) that was exported
in step 5.
The CRT-DDS file define_export.xml
will be identical to the CRT-DDS file define_import.xml, apart from
a time stamp.