Assignment
Logical entities.
Use
Generation of instructions before the 4GL instructions creating the logical entities in the database (CREATE, STORE, CLASSIFY), when the program is generated using the implicit management rule generation option.
The "creation" event and the "before" trigger point will be incorporated into the trigger modules (Adelia/400's RPG generator).
Substitution principles
The management rule text variables $$Id are replaced by the name of the view concerned by the database file access instruction or by the name of the logical entity concerned by the database SQL access instruction.
The management rule text variables $LogicalProperty are replaced by the guide word associated with the property named LogicalProperty , if the latter belongs to the entity to which the management rule is assigned.
Example
Assigning the creation date.
1. Specification of the management rule:
$CREATION_DATE = *DATE
2. Result in the program:
OR_CREATE_DATE = *DATE