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



Gerald,

Here is one option that is already available:


For embedded SQL, there is the preprocessor directive:
    EXEC SQL WHENEVER SQLERROR GO TO label;

So this gets processed by the SQL preprocessor at compile-time so that any time an SQLCODE or SQLSTATE indicates an "error" situation, the code will execute a GOTO to a label  (TAG in RPG).

lf you want to then "turn off" this behavior for a following section of code, you can use:

    EXEC SQL WHENEVER SQLERROR CONTINUE;


    to revert to the previous default behavior.


At least that's better than nothing?


Hope that helps,

Mark S. Waterbury

On Friday, June 21, 2019, 10:26:03 AM EDT, Gerald Magnuson <gmagqcy.midrange@xxxxxxxxx> wrote: 


I know we have places that don't check the sql code, sql state after a SQL
operation.

is there a tool, or method to find these problem areas?

I think I am asking for the impossible... but I want to ask just in case.

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.