STOP |
Halt Program Execution |
Use the STOP directive to terminate the currently running program. If the current program is a subprogram, then control is immediately passed back to the calling program. Otherwise, all open files are closed, a RESET operation is performed, and the next location counter is set to the start of the program.
If an application is invoked directly by an operating system command that specifies a lead program, then the STOP directive performs the function of a QUIT and automatically returns the user to the operating system. If the application is RUN from Command mode, PxPlus returns to Command mode.
When you use the STOP directive in a compound statement, it must be the final directive. (Exception: A remark can follow the STOP directive.)
QUIT Terminate PxPlus Session
RELEASE Terminate PxPlus Session
END Halt Execution of Program