Skip to main content

COBDB0100S SQL4912N host variable data length is out of range for host DB2

  • February 15, 2013
  • 0 replies
  • 1 view

Problem:

This was a coded using a SQL varchar with a missing length field. Although this will compile on the host it will not run correctly.  The correction is to add a length field to the

definition.

Should look like this:

   05  GrpName.

         49  Len      Pic S9(4) Comp.

         49  Data1 Pic X(2000).

Resolution:

Old KB# 6650

#MFDS
#EnterpriseDeveloper