ADELIA |
|
|
|
|
(I) |
|
|
|
|
Section for use
All
Syntax
VERIFICATION TransactionNum
Description
This instruction marks the beginning of the verification section of a transaction. The transaction is identified by its number TransactionNum.
Within this section (block) are found all the screen field control instructions.
In case the transaction to be verified contains a subfile, this section contains the instructions to re-read the subfile records which have been modified.
The VERIFICATION instruction is automatically generated by Adelia (Level 2 generation option of the Adelia menu) for all the "VERIFY TransactionNum" instructions of Level 1.
Important note: There can be only one VERIFICATION instruction per transaction number.
Example
**********************
TRANSACTION 02
**********************
IF *F12
PROCESS 01
END
VERIFY 02 |
This runs the VERIFICATION section |
VALIDATE 02
PROCESS 02
**********************
INITIALIZATION 02
**********************
CHAIN ORDERS
PRESENT ORDERS
*
MANAGE_SFL 1
PRESENT ORDER_LINES
UPD_SFL
END_MANAGE_SFL
**********************
VERIFICATION 02
**********************
CALL CONTROL_DATE ZZ_ORDER_DATE RETURN_CODE
IF RETURN_CODE <> *BLANK
PREPARE_MSG 0024 ZZ_ORDER_DATE
ERROR
END
*
MANAGE_SFL 1
IF ZZ_ORD_QTY = 0
PREPARE_MSG 0035 ZZ_ORD_QTY
ANOMALY
END
END_MANAGE_SFL
See also the list of 4GL instructions by topic