The statement STOP immediately terminates the execution of the program. It is used when the program has detected an unrecoverable error.