Subentries

Within an entry definition, you can define subentries. Each subentry definition consists of the entry name and the where-statement. The where-statement defines the actual parameters to use for the formal parameters of the subentry.

The actual parameters can be either a constant or a Field of the current entry.

Syntax

entry-subentries ::=
DEFINE_SUBENTRIES Subentry-sequence END_DEFINE_SUBENTRIES
Subentry-sequence ::=
Subentry-def [ Subentry-sequence ]
Subentry-def ::=
entry-name where-statement
where-statement ::=
WHERE parameter-overwrite [ parameter-overwrite-sequence ]
parameter-overwrite-sequence ::=
parameter-overwrite [ parameter-overwrite-sequence ]
parameter-overwrite ::=
PAR '(' natural-number  ')' '=' actual-parameter
actual-parameter ::=
field-or-constant
field-or-constant ::=
field-name 
|	CONST quoted-string 

Example

DEFINE_SUBENTRIES
	Postal_adres_of_customer WHERE 
		PAR(1) = Customer_number
		PAR(2) = CONST "POSTAL"
	Orders_of_customer WHERE
		PAR(1) = Customer_number
END_DEFINE_SUBENTRIES