Previous Topic: Generate all Referential Integrity Triggers for a ModelNext Topic: Modifying Referential Integrity Triggers for Migration


Selectively Generating Referential Integrity Triggers

Use this panel to select only the triggers that did not generate or compile. Successfully generate all of the RI Triggers before attempting to generate the source code for the application.

Settings in the Generation Options panel affect panels that open as a result of choices in this section.

Note: This feature does not replace Intelligent Regeneration for the regeneration of triggers after changes to the model.

Follow these steps:

  1. Display the Referential Integrity Trigger Menu.
  2. Type 4 for Select referential integrity triggers for generation/installation. You can also move the cursor to the left of the option using Tab or the cursor keys. Press Enter.

    The Specify RI Triggers for Generation panel displays.

    Select RI Triggers for Generation Row 1 of 10 COMMAND ===> SCROLL ===> PAGE

    Model Name . . : TEST INSTALLATION MODEL

    Type action codes next to one or more triggers, then press enter. To exit, press F3. To cancel, press F12. To repeat a find command, F5.

    G=Generate I=Install B=Generate and Install

    Name Generation Compilation Date Time Date Time Member Opt _ DEPARTMENT 01/01/9x 8:00 01/01/9X 8:00 E3407892 _ DIVISION 01/01/9x 8:00 01/01/9X 8:00 E3407899 _ EMPLOYEE 01/01/9x 8:01 01/01/9X 8:01 E3407893 _ TEAM 01/01/9x 8:01 01/01/9X 8:01 E5248705 _ DEPARTMENT 01/01/9x 8:01 01/01/9X 8:01 E5248716

  3. Choose an option and press Enter:

    Install compiles the RI trigger and creates unresolved (NCAL) load modules when the Dynamically Link RI triggers option is set to NO in the Specify RI Trigger Target Environment Parameters panel. When the option is YES, the installation compiles the RI triggers and creates a fully resolved DLL executable module comprising RI triggers. If RI Executable Batch Load modules library is specified, the installation process creates a batch version of dynamic RI DLL executable and saves it in this library automatically. DB2 attachment type for batch dynamic RI will be as specified by the TIRDBATT parameter, defaulting to DSN.

    When you chose to display the Referential Integrity Processing Options panel on the Generation Options panel, the panel displays to select processing parameters.

    For generation, you can select background or foreground processing.

    For the installation, you can select background or foreground processing, remote or local installation, forced compilation of triggers, and Process modules that are marked for Compatibility.

    Select the Process modules marked for Compatibility option in the Generation Options panel when the model for which you are installing the RI Triggers contains modules that are marked for compatibility.

    The Process modules marked for Compatibility option cannot be set to Yes when the Dynamically Link RI triggers is set to Yes. When both are set to Yes, the RI Generation and Installation process displays this message:

    Cannot select Process Compatibility when Dynamically Link RI is YES
    
  4. Type any character except a period (.) or a space next to the option to enable. The options are mutually exclusive. You cannot enable both. Press Enter.

    The Confirm Referential Integrity Trigger Generation panel displays if chose that option on the Generation Options panel. Press Enter to begin processing or click Cancel to stop processing.

  5. CA Gen displays the Generation Status panel when you chose foreground processing. Press Enter to close the Generation Status panel when generation completes.

    The system displays log messages to track progress during trigger generation and installation.

  6. CA Gen displays the Update JCL for Background Generation panel for job card entry if you selected background processing and you set the options to display this panel in the Generation Options panel. To suppress Update JCL for Background Generation, modify the job card and press Enter to submit the job.
  7. Press Exit to leave the RI trigger construction menu when generation completes.

More information:

Specify the Referential Integrity Trigger Target Environment

Generation Options