DB21006E The input command is too long. The maximum length is 65535.
Technote (FAQ)
Problem
DB2 v8.2 introduces a new feature that allows statements longer than 64 kilobytes to be processed by the database server. The limit has been increased to 2 megabytes. However, if you try to process a statement longer than 64 kilobytes via CLP or the Command Center, DB21006E is returned.
Cause
Although the database server now accepts statements up to 2 megabytes to be processed, this feature has not yet been propagated to CLP and the Command Center. For these tools, the maximum size a statement can have is still limited to 64 kilobytes.
Solution
The 64 kilobyte limit for statement size on DB2 tools such as CLP and the Command Center is planned to be lifted in an upcoming release of DB2. You can use another application that uses static or dynamic SQL to issue statements longer than 64 kilobytes.