Assignment
Transaction templates.
Use
Generation of instructions at the beginning of the VALIDATION 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 (if current transaction is #2 and #4 is the last transaction, then #3, #4, #1, #2 are checked).
Example
Initialization of a variable at the beginning of the VALIDATION section, in order to test whether the update process has been done.
1. Specification of the management rule:
W_ERROR_CODE = *BLANK
2. Result in the program:
BEGIN_STD_B
W_ERROR_CODE = *BLANK
END_STD