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



David FOXWELL wrote:
Just arrived to find that all our nightly jobs that used
a particular application ended in error when they tried
to execute some SQL instructions.

The program prepares a cursor from a request that is calculated,
of this type :

SELECT DIGITS(myfield)!!'_'DIGITS(myotherfield) FROM mytable

Well, if that?s the complete statement, you're missing a pair of |
characters before the second "digits"

Each program gave the same error during preparation of the
SQL statement : Elément syntaxique ! n'est pas correct. Eléments
possibles : + - AS
(hope the translation of that is obvious).

For improved debugging and troubleshooting, you would do well to obtain the
SQLCOD value under such circumstances. Then rather than hoping that the
translation is obvious, you can provide an SQL error number:
When ABS(SQLCOD) is between 0 and 9999, SQL + 4-digit number
When ABS(SQLCOD) > 9999, SQ + 5-digit number

Messages are in QSQLMSG.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"Money, it turned out, was exactly like sex. You thought of nothing else if
you didn't have it and thought of other things if you did."
-- James Baldwin


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.