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



Actually, I just got this error myself a few days ago. In my case, I was
fetching the fields into a data structure, and the data structure didn't
have the same number of fields as my SQL statement was returning (IIRC,
the data structure was missing a field).

Also, here's a little amplification on "dspmsgd sql0326 qsqlmsg":

Here's the secret to using DSPMSGD, as explained in the V4R5 "SQL
Programming Concepts" manual's "SQLCODEs and SQLSTATEs" appendix:

"Every SQLCODE has a corresponding message in message file QSQLMSG in
library QSYS. The message ID for any SQLCODE is constructed by appending
the absolute value (5 digits) of the SQLCODE to SQ and changing the third
character to 'L' if the third character is a 0. For example, if the
SQLCODE is -30070, the message ID is SQ30070."

(with thanks to someone on this list who posted this several months ago. .
. .)

hth,

rpg400-l@midrange.com writes:
>Message        ID   Severity  Message Text
> SQL0326        0     Too many host variables specified.
>
>I have not experienced this one myself so I can't say whether it means
>you've exceeded some limit or there is a mismatch between your host
>variables and SQL columns specified.


Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@juddwire.com



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.