||RUN program [,DIR=directory] [,EXCP=statement-label | NOEXCP]
The RUN statement terminates the current program and calls in
another program to be loaded and executed in the same partition.
Because it causes an exit from the current program and transfers
control to the called program, RUN is the last statement to be
You cannot return to the original program automatically. It must
be recalled by another RUN statement.
Also see ACTIVATE and
In this example, the RUN statement runs a program called
MAINMENU, which is located on directory DSK.
IF OPTION$="QUIT" THEN RUN "MAINMENU"
In this example, the variable named OPTION$ is tested. If OPTION$
is equal to "QUIT," the MAINMENU program is executed.