COMPILE.CONSTRAINTS |
|
|
The COMPILE.CONSTRAINTS command is used to compile data integrity constraints.
Format
COMPILE.CONSTRAINTS file.name COMPILE.CONSTRAINTS file.name,subfile.name COMPILE.CONSTRAINTS file.name,*
COMPILE.CONSTRAINTS file.name {CLEAR} {DISABLE | LOGGING}
where
The data integrity constraint rules are defined in field 12 of D, A or S-type records in the dictionary and must be compiled and stored in the data file before they take effect. This is done using the COMPILE.CONSTRAINTS command.
For each field to which constraints are to be applied, the command shows the field number (0 for the record id), field name and constraints expression. If an error occurs, no updates are applied to the data files.
Where a field is defined from multiple dictionary records, only one may contain a constraints expression.
On completion of the command, @SYSTEM.RETURN.CODE will be zero if compilation was successful or a negative error number if it fails.
See also: |