END
Terminates the current program. Regardless of where END occurs inside a program, including within User-Defined Functions, the effect is the same: immediate termination of the program.
Comments
For a normal (non-SBX) program, END will return control to the command prompt. END inside an SBX Subroutine, on the other hand, returns to the caller at the statement following the XCALL that invoked the subroutine.
If not specified, the compiler effectively appends an END statement to the end of the main routine.