Using @COLTEST
Use the @COLTEST function to check for the following conditions:
-
PRESENTtests whether a column is present and not null. -
NULLtests whether a column is present and null. -
MISSINGtests whether a column is not present. -
INVALIDtests whether a column is present but contains invalid data.
The following example checks whether the AMOUNT column is present and NULL and whether it is present but invalid.
@COLTEST (AMOUNT, NULL, INVALID)