ADELIA |
|
|
|
|
(I) |
|
|
|
|
Section for use
VALIDATION
Syntax
VALIDATION TransactionNum
Description
This instruction marks the beginning of the validation section of a transaction. The transaction is identified by its number TransactionNum.
Within this section (block) are found all the instructions for transferring screen fields to the associated file fields (data flow), and all the instructions for updating database.
If the transaction to be validated contains a subfile, this section contains the instructions to re-read the modified subfile records and to update the database.
The VALIDATION instruction is automatically generated by Adelia (Level 2 generation option of the Adelia menu) for all the "VALIDATE TransactionNum" instructions of Level 1.
Important note: There can be only one VALIDATION instruction per transaction number.
Example
**********************
TRANSACTION 02
**********************
IF *F12
PROCESS 01
END
VERIFY 02
VALIDATE 02 |
This runs the VALIDATION 02 section |
PROCESS 02
*
* ...
**********************
INITIALIZATION 02
**********************
CHAIN ORDERS
PRESENT ORDERS
*
MANAGE_SFL 1
PRESENT ORDER_LINES
UPD_SFL
END_MANAGE_SFL
*******************
VALIDATION 02
*******************
STORE ORDERS
*
MANAGE_SFL 1
STORE ORDER_LINES
END_MANAGE_SFL
See also the list of 4GL instructions by topic