Terminate statement in natural



Software AG's platform-independent programming language with full support for open-source and Internet applications

Terminate statement in natural

Postby diptisaini » Tue Nov 23, 2010 11:15 am

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 ?
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Terminate statement in natural

Postby RGZbrog » Wed Nov 24, 2010 12:18 am

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.
User avatar
RGZbrog
 
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Location: California, USA
Has thanked: 0 time
Been thanked: 0 time

Re: Terminate statement in natural

Postby 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.
fidelis
 
Posts: 7
Joined: Thu Dec 16, 2010 1:01 am
Location: Brazil
Has thanked: 0 time
Been thanked: 0 time


Return to Natural

 


  • Related topics
    Replies
    Views
    Last post