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



You can also get the last SQL statement from the GET_JOB_INFO table
function.

http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqudfgetjobinfo.htm

Sue Romano
IBM i SQL Development

That's an option for a selected job in iNav...

Charles

On Thu, Nov 17, 2016 at 9:58 AM, Jeff Young <jyoung0950@xxxxxxxxx> wrote:

If I recall correctly from a long time ago (and far far away), there
was a
method to show the last sql statement a running job executed.
Does anyone recall how to do this?

Thanks.

BTW, I am attempting to troubleshoot an SQL RPGLE program that is
taking an
unusually long time to return results. The program is dynamically
preparing a cursor based on input from a user program. Is there any
easy
way to analyze that statement to determine if there is a better way to
optimize it?

Jeff Young
Sr. Programmer Analyst






As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.