Check Macro
|
Code Logic Style
|
Description of Purpose
|
---|---|---|
%CSTCHECK_COLUMN
|
||
Statement
|
Identifies any invalid
column values or attributes.
|
|
%CSTCHECK_COLUMNCOMPARE
|
||
Step
|
Supports comparison
of column values.
|
|
%CSTCHECK_COLUMNEXISTS
|
||
By default, this check
does not require the use of codeLogic. If the check metadata includes
a non-null value of codeLogic, then DATA step code logic is required.
|
Determines whether one
or more of the columns defined in columnScope exist in each of the
tables defined in tableScope.
|
|
%CSTCHECK_COLUMNVARLIST
|
||
Step
|
Supports comparison
of multiple columns within the same data set or across multiple data
sets.
|
|
%CSTCHECK_COMPAREDOMAINS
|
||
Step
|
Compares values for
one or more columns in one domain with values for those same columns
in another domain.
|
|
%CSTCHECK_CROSSSTDCOMPAREDOMAINS
|
||
Step
|
Generally, compares
values for 1+ columns in one table against either those same columns
in another domain in another standard, or compares values against
metadata from the comparison standard.
|
|
%CSTCHECK_CROSSSTDMETAMISMATCH
|
||
Step
|
Identifies inconsistencies
between metadata across registered standards.
|
|
%CSTCHECK_DSMISMATCH
|
||
Step
|
Identifies any data
set mismatches between study and template metadata and the source
data library.
|
|
%CSTCHECK_METAMISMATCH
|
||
Step
|
Identifies inconsistencies
between study and reference column metadata.
|
|
%CSTCHECK_NOTCONSISTENT
|
||
Step
|
Identifies any inconsistent
column values across records.
|
|
%CSTCHECK_NOTIMPLEMENTED
|
||
(not used)
|
Placeholder to report
that a check is not yet implemented.
|
|
%CSTCHECK_NOTINCODELIST
|
||
If lookuptype=DATASET,
DATA step code logic required
Else, DATA step code
logic is optional
|
Identifies any column
values inconsistent with controlled terminologies.
Requires reference to
the SAS format search path built based on type=FMTSEARCH records in
the SASReferences control file.
Example is a **STAT
value is found other than 'NOT DONE.'
|
|
%CSTCHECK_NOTSORTED
|
||
(not used)
|
Identifies any domain
that is not sorted by the keys defined in the metadata.
|
|
%CSTCHECK_NOTUNIQUE
|
||
Not used for functions
1 through 3; DATA step for function 4
|
A multi-function macro
that assesses the uniqueness of data sets, columns, or value-pairs
from two columns.
Function 1: Is data
set unique by a set of columns?
Function 2: For any
subject, are column values unique?
Function 3: Does a combination
of two columns have unique values?
Function 4: Are the
values in one column (Column2) consistent in each value of another
column (Column1)?
|
|
%CSTCHECK_RECMISMATCH
|
||
Step
|
Identifies any record
mismatches across domains (domain as referenced in another domain).
|
|
%CSTCHECK_RECNOTFOUND
|
||
Step
|
Compares the consistency
of one or more columns across two tables or enables the comparison
of the consistency of one <table>.<column> with another
<table>.<column>.
|
|
%CSTCHECK_VIOLATESSTD
|
||
Statement
|
Identifies any invalid
column values defined in a reference standard.
|
|
%CSTCHECK_ZEROOBS
|
||
(not used)
|
Identifies any data
set with zero observations.
|
|
%CSTCHECKCOMPAREALLCOLUMNS
|
||
Step
|
Compares all columns
in one domain with the same columns in other domains.
|
|
%CSTCHECKENTITYNOTFOUND
|
||
Step
|
Reports that an entity,
typically a file, folder, or column, cannot be found.
|
|
%CSTCHECKFOREIGNKEYNOTFOUND
|
||
Step
|
Compares the consistency
of one or more columns across two tables, where a column in the first
table is a foreign key that points to a primary key in the second
table.
|