Two SAS Clinical Standards
Toolkit framework utility macros perform key functions in assessing
whether the SASReferences file is valid.
The cst_insertstandardsasrefs
macro looks up missing paths and memnames in the constructed SASReferences
file from each StandardSASReferences data set. For example, this macro
sets the path and memname values for lines 8 and 9 and 11 and 12 in
the example in
Sample SASReferences File for CDISC SDTM Validation. This macro attempts to update only records for supported
standards (and standardversions) that have missing path and memname
information. It does not update records with non-null values, and
it does not add any records from the StandardSASReferences data set.
If this macro runs successfully, then the resulting data set has paths
for all records and memnames for all records that require them. This
does not include autocall and sourcedata records. By default, the
resulting data set is referenced by the &_cstSASRefs global macro
variable.
The cstutil_checkds
macro checks the structure and content of the data sets used by the
SAS Clinical Standards Toolkit, including SASReferences. This macro
validates that SASReferences has the structure and content defined
by the StandardSASReferences and Standardlookup data sets.
Here is the syntax of
this macro:
%cstutil_checkds(_cstdsname=, _csttype=, _cstsubtype=,
_cststandard, _cststandardversion);
_cstdsname specifies
a two-level name of the data set to be validated. This value is required.
_csttype specifies the
type of the data set to be validated. This value is required. This
value comes from the Type column in the registered SASReferences for
the standard-version combination.
_cstsubtype specifies
the subtype for the corresponding type. This value comes from the
Subtype column in the registered SASReferences for the standard-version
combination. If the type has no subtypes registered, then this option
can be omitted. Otherwise, this value is required.
_cststandard specifies
the name of the data standard to validate against. This value is optional.
By default, all standards are included.
_cststandardversion
specifies the version of the data standard to validate against. This
value is optional. By default, all standard versions are included.
Results are written
to the Results data set defined by the &_cstResultsDS global macro
variable.