× 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.



Hi Alexei,

Why would you say that?  NUMERIC is for packed decimal, and DECIMAL is for
zoned decimal near as I can tell from the manuals, so using NUMERIC
should've worked just fine if the UDF was expecting packed-decimal.  But
using it from STRSQL got a decimal data error.

When I create the UDF using DECIMAL, it can be called from STRSQL just fine.

But for sure the debugger is only showing 5 bytes when I would expect it to
be showing 8.

Peter Dow
Dow Software Services, Inc.
909 793-9050 voice
909 522-3214 cellular
909 793-4480 fax

----- Original Message -----
From: "Alexei Pytel" <pytel@us.ibm.com>
To: <rpg400-l@midrange.com>
Sent: Friday, September 20, 2002 11:25 AM
Subject: Re: Using SQL UDF in SQLRPGLE program gets decimal data error


>
> It looks like it confirms my guess that UDF expects packed decimal data.
> This is consistent with debugger showing only 5 bytes for data (vs 8).
>
>     Alexei Pytel
> always speaking only for myself





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.