Please enable JavaScript to view this site.

A-Shell Reference

 

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.