× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Gary L Peskin skrev den 01-09-2008 16:15:
Sorry, Thorbjørn, but you won't be getting a COBOL PIC 9(5) to work
correctly. Please see
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzajp/rzajpequiv
sqlcobol.htm. NUMERIC(5, 0) is equivalent to specifying

PIC S9(5)

which is exactly what you're seeing in the dump. Note the S in front of the
9(5). This means that you are requesting a leading sign byte which is
exactly what you're getting.

>From the page above, it looks like there is no way to pass a 9(5) to a COBOL
program using SQL. :(
Thanks! This conversion table should have been referenced in the external stored procedures section in the redbook I had been reading, would have saved me quite some time...

I love the fact that the table is in the "Coding SQL from inside Cobol" section. Somehow I don't think I ever would have looked in that section without a hint.

Now I just need to make a "hey, this works" stuff in some non-Java languages!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.