ADELIA |
|
|
|
|
(I) |
|
|
|
|
Section for use
INITIALIZATION, VERIFICATION, VALIDATION
Syntax
MANAGE_SFL n Parameter
Parameter |
→ |
*NO_MR | *MR | None |
Description
This instruction marks the beginning of a subfile processing. It must be followed by the END_MANAGE_SFL instruction.
n is the number of the subfile concerned; it is the number found after the asterisk (*) in the layout format code. Example: 1 for *1, 4 for *4, etc.
There can be only one MANAGE_SFL instruction for a subfile in a specific block.
Subfile management loops are located in the following blocks:
Implicit reading of the guide file declared in the data flow.
Reading of the subfile for all records created or modified; see the use of the DDS keyword "SFLNXTCHG" in the IBM course regarding subfiles.
Re-reading of these same records so as to update the database file.
*NO_MR and *MR parameters are only valid when in an INITIALIZATION section.
The *MR parameter allows you to generate read implicit management rules that are linked to the entity corresponding to the view, even if the program is generated without the option to generate implicit management rules.
The *NO_MR parameter allows you not to generate read implicit management rules that are linked to the entity corresponding to the view, even if the program is generated with the option to generate implicit management rules.
Example
**********************
INITIALIZATION 02
**********************
MANAGE_SFL 2
* loading all order lines in subfile 2 and getting item description
PRESENT ORDER_LINES
CHAIN ITEM
PRESENT ITEM
UPD_SFL
END_MANAGE_SFL
*********************
VERIFICATION 02
*********************
MANAGE_SFL 2
* verifying the item code for each line of subfile
CHAIN ITEM
IF ITEM DOES_NOT_EXIST
PREPARE_MSG 0029 ZITEM_CODE
ANOMALY
END
END_MANAGE_SFL
******************
VALIDATION 02
******************
MANAGE_SFL 2
* updating order lines from the subfile
STORE ORDER_LINES
END_MANAGE_SFL
See also the list of 4GL instructions by topic