There are two ways to
report problems: in the _cstResults data set or in the SAS log file.
Because a full SAS Clinical
Standards Toolkit environment (one in which all global macro variables
are defined) is not required for a macro to run, a macro reports problems
in one of two locations, in this order:
-
If the _cstResultsDS macro variable and the data set
specified by the value of _cstResultsDS exist, problems are reported
in the _cstResults data set.
-
If the _cstResultsDS macro variable or the data set
specified by the value of _cstResultsDS does not exist, problems are
reported in the SAS log file.
Note: After the first submission
of a macro, a work._cstresults data set might exist and the _cstResultsDS
macro variable might specify the data set. Subsequent macro submissions
report problems to the work._cstresults data set instead of to the
SAS log file. This happens because some of the macros call other internal
macros that generate a work._cstresults data set. This data set is
then used by subsequent macros for problem reporting.
If the SAS log file
is used to report problems, the SAS Clinical Standards Toolkit distinguishes
problems from normal SAS log messages by displaying a message similar
to this one:
[CSTLOGMESSAGE.CSTUTILDELETEDSCOLUMN] ERROR: results.transactionlog could not be found.