STOP Statement

STOP <error-message> ;

The STOP statement stops the program, and no further matrix statements are executed. However, PROC IML does not exit, and continues to execute if more statements are submitted. See also the descriptions of the RETURN statement and the ABORT statement.

If execution was interrupted by a PAUSE statement or by a break, the STOP statement clears all the paused states and returns to immediate mode. For more information, see the section Termination Statements.

If you specify the optional error-message, the message is written to the SAS Log.