This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
Thank you for taking the time to submit this IBM Idea and share your feedback with IBM and the broader IBM i community.
The CAAC has reviewed this Idea and, after careful consideration, does not recommend that IBM move forward with the request in its current form at this time.
Reason: The CAAC recognizes the value of viewing a job’s SQL activity to support troubleshooting. During its review, the subgroup determined that the underlying need can already be addressed through existing IBM i SQL services, including QSYS2.ACTIVE_JOB_INFO, which provides SQL statement text and related job information. A working SQL example has also been shared in the comments on this Idea. Although the request proposes accessing this information through an additional WRKJOB option, the CAAC does not recommend a separate enhancement at this time because existing capabilities provide a way to obtain the information. We encourage you to review the example and share any specific needs it does not address.
Although the CAAC is not recommending implementation of this request, Ideas such as this help IBM and the CAAC better understand the needs and priorities of the IBM i community. We appreciate your contribution and encourage you to continue submitting IBM Ideas and sharing your feedback.
Background: The COMMON Americas Advisory Council (CAAC) includes members with a broad range of experience working with small and medium-sized IBM i clients. The CAAC works with IBM i development to help assess the potential value and impact of individual IBM Ideas on the broader IBM i community.
For more information on the CAAC, visit: COMMON Americas Advisory Council
Brandon Pederson - CAAC Program Manager
https://techchannel.com/i-can-blog/retrieving-sql-statement/ gives:
SELECT JOB_NAME,
AUTHORIZATION_NAME,
CLIENT_IP_ADDRESS,
ELAPSED_CPU_TIME,
ELAPSED_PAGE_FAULT_COUNT,
ELAPSED_TOTAL_DISK_IO_COUNT,
SQL_STATEMENT_TEXT
FROM TABLE (
QSYS2.ACTIVE_JOB_INFO(JOB_NAME_FILTER => 'QZDAS*', DETAILED_INFO => 'ALL')
)
WHERE SQL_STATEMENT_TEXT <> ' '
ORDER BY ELAPSED_CPU_TIME DESC;