The STOP statement causes execution of a program to terminate.
Syntax
STOP [stop-code]Where:stop-code is a scalar CHARACTER constant or a series of 1 to 5 digits.
When a STOP statement is reached, the optional stop-code is displayed, if present.
Example
program foo stop ! program execution terminated end program foo