7.6

Table Of Contents
translate( 8.5, 0 )
$page2
Emulation, Data File, and Data Pages
ClearPage (procedure)
Clears the current data page and loads the next one. This command should only be used before reading the next page of data
from the input stream. It is strictly for use within a User-Define Emulation and generally follows DoForm (procedure).
Syntax
clearpage()
Argument
None
Example:
This example the default User-Defined Emulation that corresponds to a Line Printer data file.
search(&str,'\014')
set(&current.line,&current.line + 1)
store(&current.line,&str)
doform()
clearpage()
endsearch()
set(&current.line,&current.line + 1)
store(&current.line,&str)
if(ge(&current.line,&current.lpp))
doform()
clearpage()
endif()
DefineData (procedure)
Change the active data file to the one specified in the path parameter.
Changing the data file in the middle of document processing can have unexpected consequences and should only be
used if you understand the implications of doing so.
Syntax
definedata( path )
Argument
path
String value specifying the path of the data file.
©2010 Objectif Lune Inc - 613 -