This illustration shows the following syntax on a horizontal line:
EXEC SQL WHENEVER NOT FOUND CONTINUE
SQLERROR (on a loop)
SQLERROR
SQLWARNING (on a loop)
SQLWARNING
GOTO label (on a loop)
GOTO
STOP (on a loop)
STOP
DO routine (on a loop)
DO