Problem:
Email from customer:
I have question about a cobol program calling a stored procedure.
It seems that I am getting the length of each linkage item as the first 2 bytes. Is this normal ?
Resolution:
If you're seeing the short integer in front of the data and that short integer has the length of the data, it sounds like the engine is interpreting the arguments as VARCHAR rather than CHAR, which sounds like it's correct.
You should really have 49 levels after the 01 rather than the 05 levels you currently have. If you used the 01 as a host variable in the code it would fail because without the 49 levels the precompiler (ours and IBMs) will use it as two separate host variables rather than a single VARCHAR host variable.
#MFDS
#EnterpriseDeveloper