|
I think that this is beyond the JDBC driver, and in the database itself.
We're at a point of guessing how the JDBC driver works, so I'm a little out of my league,. but I did notice something. It LOOKS like for some
reason the parameters are being passed correctly, except with a leading plus sign. For example, your first iteration through the loop you should be passing 1 in the first parameter and 25 in the second. With leading plus signs, that's X'41F0F0F0F0F1' and X'41F0F0F0F2F5'. Remove the last character, and this matches exactly what you're seeing.I created a new derivative being a cobol ILE program and recompiled (which enables me to set a service entry point, whee!)
Why? I don't know. I suggest one thing to further test, and a workaround:
1. To further test, change your input parameters to character values of length seven or more and see what you get. My guess is you will see the hex values I mentioned above.
2. A workaround, unsatisfactory though it may be, is to use character fields. It's relatively easy if you won't be passing negative numbers. Just format the integer into a five-character alpha field with leading zeros and that will be the same as a zoned decimal field.You are right. This works! Thanks a lot!!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.