DB2-1040-00-E Invalid use of WHERESQL with CURRENT

You used WHERESQL CURRENT OF instead of WHERE CURRENT OF.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Resolution:

Check syntax.