Terminate statement in natural
Posted:
Tue Nov 23, 2010 11:15 am
by diptisaini
Hi,
I just need to know what is the exact use of "TERMINATE ". Can you please explain me with example ?
Is it efficient to use "STOP" statement in place of "TERMINATE" statement ?
Re: Terminate statement in natural
Posted:
Wed Nov 24, 2010 12:18 am
by RGZbrog
These statements are well documented. What is it that you don't understand?
The STOP statement is used to terminate the execution of a program and return to the command input prompt.
The TERMINATE statement is used to terminate a Natural session.
Re: Terminate statement in natural
Posted:
Thu Dec 16, 2010 1:10 am
by fidelis
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.