The following statement was executed with SQL CODE=0 without any error.
Why no error for the second statement(WHERE CLAUSE) which was a typo.
Release : 20.0
Component : Plan Analyzer for DB2 for z/OS
Product works as designed. The WHERE clause was ignored because it's not an explainable statement. A statement is an explainable if it is a SELECT, MERGE, TRANCATE or INSERT statement, or the searched form of an UPDATE or DELETE statement.