#352 PCML Max String Length

PCML
closed-fixed
wanghuiq
PCML (1)
1
2014-08-11
2014-07-14
Bruce
No

Since V6R1 increased size of variables to 16MB it is possible to have 16MB size field in PCML. The communication layer in the JT400 however throws an exception thinking the max length is 10241024. This error occurs in com.ibm.as400.data.PcmlData as the variable defined is MAX_STRING_LENGTH = 10241024. This results in a length of 1,048,576 where a technically it can go up to 16,773,104. Anything over that will cause the source code to compile. Can the MAX_STRING_LENGTH variable please be increased to support this new maximum size.

Discussion

  • wanghuiq
    wanghuiq
    2014-07-18

    • assigned_to: wanghuiq
     
  • wanghuiq
    wanghuiq
    2014-07-18

    16MB should be 16,777,216. I will get the MAX_STRING_LENGTH to support the 16MB in next jtopen release.

     
  • wanghuiq
    wanghuiq
    2014-07-18

    Forget to minus the header size. So will make the MAX_STRING_LENGTH to 1610241024-4112.

     
  • wanghuiq
    wanghuiq
    2014-08-11

    Fixed in jtopen 8.3

     
  • wanghuiq
    wanghuiq
    2014-08-11

    • status: open --> closed-fixed