These topics discuss how to create and work with trigger programs.
To add a trigger to a database file, follow these
steps:
- Supply a trigger program. You can write a trigger program
in a high-level language (HLL), Structured Query Language (SQL), or control
language (CL).
- Use one of the following methods to add the trigger:
- The Add Physical File Trigger (ADDPFTRG) command. You must specify your
trigger program in the trigger program (PGM) parameter on the command.
- Add a trigger using iSeries™ Navigator.
- The CREATE TRIGGER SQL statement.