To step through a database file extracting data values, e.g. for merging files, use

REPEAT = "n"

where n is a number: repeats n times or

REPEAT="YES"

This repeats until no new data is provided by a database or until all the text supplied by a file of FILETYPE="TEXT" has been formatted onto a PAGE.

Element GROUP sample script

Element FILE sample script

Technical note

New data is provided by reading a file whose page number is specified by:

setting the attribute PAGE = "NEXT" or
calling a plugin whose return code must be ee_dataProvided to signify that it produced new data.

Links:

Using data fields

Notes on text

PAGE