WHENEVER

The WHENEVER statement specifies the action to be taken when a specified exception condition occurs.

For more information, see WHENEVER in the SQL Reference topic in the Information CenterLink to Information center.