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



Luis,
The program currently prints SQLCODE on the error report and has an option to do a program dump at that point,
and I checked and CPA4259 is not on our system reply list and these jobs (several for each person running "Dispatch")
are not set INQMSGRPY(*SYSRPYL).
Because key values also show on the error report, I don't yet see value in a program dump so please let me know if I'm mistaken.
I'll need to check on SQLWRN, but I'm working on an un-related program change so I'll get that done by early next week.
Thank you for help!

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: Friday, July 17, 2015 1:11 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Unexpected SQLSTATE returned from embedded SQL

On Fri, Jul 17, 2015 at 1:02 PM, Gary Thompson <gthompson@xxxxxxxxxxx>
wrote:

...CPA4259/QUERY_TIME_LIMIT, but we did not see that during a check
yesterday where we compared the report showing SQL 02000 and the job's
log covering that time.
I checked WRKRPYLE and don't see an entry there.
From what I see that message would tend to put the affected job in
message wait ?...



Gary,

Yes, AFAIK CPA4259 would have show as an error message in your job's log (unless, of course, its reply list had been modified (CHGRPYLE)) .

Can you modify your program in order to show the values for SQLCODE and SQLWRN? Better yet, try a program dump when you have an unexpected SQL0200 message.


Regards,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries
--
--
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.