Use the CANCEL statement to cancel the processing of an SQL statement by the database kernel. This means that the SQL statement has no effect.If successful, the CANCEL statement has the return code sqlcode 0. The canceled statement has the sqlcode –102.
EXEC SQL CANCEL [<cancel_session>];
<cancel_session> ::= <session_number> | <session_name> | CURRENT