Create trigger programs

These topics discuss how to create and work with trigger programs.

Start of changeTo add a trigger to a database file, follow these steps:End of change

  1. Supply a trigger program. You can write a trigger program in a high-level language (HLL), Structured Query Language (SQL), or control language (CL).
  2. 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.
Related reference
Add Physical File Trigger (ADDPFTRG) command
CREATE TRIGGER