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.
16MB should be 16,777,216. I will get the MAX_STRING_LENGTH to support the 16MB in next jtopen release.
Forget to minus the header size. So will make the MAX_STRING_LENGTH to 1610241024-4112.
Fixed in jtopen 8.3