Supporting Macros

The following macros support SAS Clinical Standards Toolkit internal validation. Many of these macros are also used for other purposes.
These macros are located in the primary SAS Clinical Standards Toolkit autocall path:
  • Microsoft Windows
    !sasroot/cstframework/sasmacro
  • UNIX
    !sasroot/sasautos
For complete macro documentation, see the SAS Clinical Standards Toolkit: Macro API Documentation.
Autocall Macros That Support Internal Validation
Macro
Primary Purpose
%CSTCHECKENTITYNOTFOUND
Reports that a SAS Clinical Standards Toolkit entity (typically a file, folder, or column) cannot be found.
%CSTCHECKUTILCHECKFILE
Determines whether a file exists as defined by columns in a source data set.
%CSTCHECKUTILCHECKFOLDER
Determines whether a folder exists as defined by columns in a source data set.
%CSTCHECKUTILCHECKSTRUCTURE
Compares the structure of data sets referenced within StandardSASReferences or SASReferences data sets against a template.
%CSTCHECKUTILFINDSASREFSFILE
Determines whether designated files in the referenced SASReferences data set exist.
%CSTCHECKUTILLOOKUPVALUES
Determines whether metadata column values for discrete columns exist in the Standardlookup data set.
%CSTUTILBUILDMETADATAFROMSASREFS
Builds the framework reference_tables and reference_columns data sets.
%CSTUTILBUILDSTDVALIDATIONCODE
Generates the validation-specific macro _cstreadStds to build the workflow.
%CSTUTILCHECKFORPROBLEM
Handles any error condition that sets error condition _cst_rc to 1.
%CSTUTILCHECKWRITEACCESS
Checks for Write access for an output object.
%CSTUTILCOMPARESTRUCTURE
Compares the metadata structure of two data sets.
%CSTUTILFINDVALIDFILE
Checks whether a folder, file, data set, catalog, or catalog member exists.
%CSTUTILPROCESSFAILED
Returns a Boolean value to report whether a process failed.
%CSTUTILVALIDATESASREFERENCES
Validates the structure and content of a SASReferences data set.
%CSTUTILVALIDATIONSUMMARY
Summarizes the contents of the validation process results data set.