Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

-433

SQLSTATE 22001NEGATIVE SQLCODE · CHECKED 2026-11-14
Checked against IBM documentation

A value had to be cut short by a built-in cast or adjustment function, and truncation is not allowed where that value is used.

QUICK ANSWER

A value had to be cut short by a built-in cast or adjustment function, and truncation is not allowed where that value is used.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. A literal string in the statement is too long for its intended use.
  2. The input to the transformation is too long, or the target is too short.

CHECKED 14 Nov 2026 IBM: -433 (Db2 13 for z/OS)

TRY IT: RECORD DECODER ▸

MOST LIKELY

A literal string in the statement is too long for its intended use.

FIRST CHECK

If the value is a literal, shorten it or widen the target.

TRY IT ▸

Record decoder

What it means

The value was being transformed by a system cast or adjustment function. The value is an argument to a user-defined function, an input to the SET clause of an UPDATE, a value being inserted, or an input to a cast in another context.

The statement cannot be processed. A BINARY, VARBINARY or FOR BIT DATA value is shown as a hexadecimal string.

Typical causes

  • A literal string in the statement is too long for its intended use.
  • The input to the transformation is too long, or the target is too short.

How to fix it

  1. If the value is a literal, shorten it or widen the target.
  2. If it is not a literal, find where the transformation happens in the statement, correct the input or the target length and run it again.