MAIN program block

The program block that 4GL begins executing when it starts a 4GL program. This program block is defined with the MAIN statement and includes all statements between the MAIN and the END MAIN keywords. When it reaches the END MAIN keywords, 4GL ends the program.

See also 4GL function, function, program block, report.