Specify referential constraint rules

Referential constraints allow you to specify rules that you want the system to enforce when you delete or update records.

To specify the rules you want to enforce with referential constraints, follow these steps:

  1. Run the Add Physical File Constraint (ADDPFCST) command.
  2. Specify the rule that you want to enforce when you delete records (the delete rule) by choosing a value for the DLTRULE parameter.
  3. Specify the rule that you want to enforce when you update records (the update rule) by choosing a value for the UPDRULE parameter.

You can also add referential constraints using iSeries™ Navigator.

Related concepts
Get started with iSeries Navigator
SQL programming
Related reference
Add Physical File Constraint (ADDPFCST) command