<<

Contents

Search

>>

 

ENDPROG

 

 

Instruction

 

 

Syntax:

ENDPROG

 

Meaning:

Closes a mask, a subprogram or the main program.

 

The effect of ENDPROG depends on where the instruction is called:

 

In the main program: The ON EXIT MACRO is executed, the Index Files are closed and the program is closed.

 

In the subprogram: The subprogram is closed and the instruction after the CALL is executed.

 

In mask called by CALL #...: The mask called by CALL #... is closed. Program execution continues with the next instruction after CALL #... .

 

See also:

CALL

EXIT