MAIN
The MAIN statement defines the MAIN program block.
statement is any SQL statement or other 4GL statement (but not FUNCTION, GLOBALS, MAIN,
REPORT, RETURN, nor the 4GL report execution statements NEED, PAUSE, PRINT,
and SKIP).
Every 4GL program must have exactly one MAIN statement. The MAIN statement
typically calls functions or reports to do the work of the application.
References
CALL
DATABASE
DEFER
DEFINE
EXIT
FUNCTION
GLOBALS
REPORT