PATH

In a statement FORALL or WITH you can immediately go to the entry you want by using the statement PATH.

The model itself does not know the key values, which have to be used; therefore in case of a PATH statement these values have to be set in the model document. This can be done by using PAR.

PATH-PAR -statement:

FORALL Entry_ref PATH xxx.entry_sequence WHERE 
PAR( 1 ) = expr
PAR( 2 ) = expr
...
PAR( n ) = expr
DO
model part with declarations
OD

xxx: the three letter code of the DID.

entry_sequence: a series of entry names separated by periods. The sequence has to start with a main entry and for every connected pair of entries a entry-subentry relation has to be defined.

n: the number of formal parameters of the entry which is addressed, i.e., the final entry of the sequence.

PAR( i) = expr: the type of the expression expr must be of the same type as the i-th formal parameter of the addressed entry. For each formal parameter of the entry you must define a PAR( i ) statement.

Example

FORALL Person PATH XXX.Persons.Address_of_persons WHERE
PAR ( 1 ) = "233 M2"
PAR ( 2 ) = 12
DO
...
OD

In this Example, for persons that have postcode "233 M2" and house number 12, the address is stated.
Note that for both formal parameters an actual parameter is passed.