Script runs fine in sqlplus but Toad for Oracle ignores the parameter unless it is enclosed in quotes.
It allows other alphanumeric characters like ABCD. It also ignores table and other "reserved" words.
This is a known product defect and there is an open defect ID: TOR-6028, the Toad DEV team is engaged and working on this issue.
Workaround:
For now, use quotes or do not use reserved words such as TABLE.