Directives 

STOP

Halt Program Execution

Format

STOP

Description

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.)

See Also

QUIT Terminate PxPlus Session
RELEASE Terminate PxPlus Session

END Halt Execution of Program