by fidelis » Thu Dec 16, 2010 1:10 am
The STOP statement is used to terminate the execution of a program and return to the command input prompt and the TERMINATE statement is used to terminate a Natural session. A TERMINATE statement may be placed anywhere within a Natural program. When a TERMINATE statement is executed, no end-of-page or end-loop processing will be performed.
One or more STOP statements may be inserted anywhere within a Natural program. The STOP statement will terminate the execution of the program immediately no terminate a Natural session. Independent of the positioning of a STOP statement in a subroutine, any end-page condition specified in the main program will be invoked for final end-page processing during execution of the STOP statement.