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



My next guess would be that your parameters don't match, and so you are corrupting memory. Looking back, I see that your RPG code returns a 65535A, which is larger than SQL could support. Your latest SQL is only reserving memory for VARCHAR(1000). That means that your RPG will overwrite 64535 bytes of memory that haven't been reserved to it -- and that can cause just about any sort of error.

Please make your parameters match.


On 9/27/2013 3:19 PM, Robert Mullis wrote:
Thanks Scott.

I tried the "disallow parallel", but still got the same error.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Friday, September 27, 2013 3:21 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Creating a SQL UDF

Hi Robert,

I haven't run across this error before, but I suspect it's because
you've coded "allow parallel". This would mean that it's trying to
call your UDF in multiple threads at once. I suspect that your RPG
program is not coded to handle multi-threaded calls.

Try changing it to "disallow parallel" and see if that solves the
problem.

-SK


On 9/27/2013 7:29 AM, Robert Mullis wrote:

Function error X'0306' in machine instruction. Internal dump
identifier
(ID) 0100A758.

There is nothing else in my joblog, but this message. This is how I
defined my UDF:

Create Function RMULLIS/RmvNonAlph(VarChar(1000),VarChar(1))
Returns VarChar(1000)
Language RPGLE
External Name 'RMULLIS/SYSRVUTL(REMOVE_NON_ALPHANUMERIC)'
Deterministic
No SQL
Parameter Style General
Allow Parallel
No External Action

Any ideas on what might cause this error?


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.