Assignment
Transaction templates.
Use
Generation of instructions at the beginning of the INITIALIZATION section.
Click below for more information on generating management rules in programs (generation paragraph, and the generation point within the paragraph):
Substitution principles
The management rule text variables $$Id are replaced by the number of the current transaction.
The management rule text variables $(+n) or $(+nn) are replaced by the number of the current transaction plus n (or nn).
The management rule text variables $(-n) or $(-nn) are replaced by the number of the current transaction minus n (or nn).
The management rule text variables $TransactionTemplate are replaced by the number of the first transaction having this TransactionTemplate.
The number is searched for in the successive transactions, starting from the transaction following the current one, and looping back to the beginning once the last transaction has been reached (For example, if current transaction is #2 and the last transaction is #4, then #3, #4, #1, #2 are checked).
Example
Updating the time.
1. Specification of the management rule:
HOUR Z_HOUR
2. Result in the program:
BEGIN_STD_B
HOUR Z_HOUR
END_STD