<< Click to Display Table of Contents >> Navigation: Reference > Commands > CK (check) |
The form of the CK command is:
CK [text] . logical expression,
The CK command is used at the Data Stage to check data, and generates monitoring at execution time if the data check fails. It is similar in effect to EL (edit and list), but is easier to use.
If the logical expression is true, execution continues with the next command and nothing else happens. If it is false, then the text, if specified, is printed (as in a L (list) command), the values of all the variables mentioned in the logical expression are printed (as if they had been listed), and variable $XIERR is incremented (as if EL (edit and list) had been executed).
If Run Control Parameter INTED is used, CK commands are treated as if they were HOLD commands at execution time.
F=CKT specifies that the logical expression for a CK (check) command is added to any text specified in the Report file.
Examples of CK commands:
ck $123/1..5,
ck $126-128/>0,
ck $156/n7..9.s,
ck $56/(1..5.n6..9)+6.s,
ck $123/4.n5,
ck 'Sum wrong'.$it.eq.$401-403,