Skip to Main Content
IBM Power Ideas Portal


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


Shape the future of IBM!

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:

Search existing ideas

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 your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

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.

Status Not under consideration
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on Nov 29, 2023

Enhance QCMDEXC Scalar function to process an entire result set

I have hit a max limit on the QCMDEXC scalar function. for example, I have 243 jobs in the job scheduler and I need to hold them all with the exception of a few. I have to run my HLDJOBSCDE command using the qcmdexc scalar function about 3 times before it catches it all.
Another example is in our EDI library, we have thousands of EDI generated emails and as a part of the cleanup, we have to wipe them out. I had to create a loop and use the QCMDEXC procedure to solve that problem. It would be wonderful if the QCMDEXC scalar function could either be enhanced that you could tell it how many rows to process (so you dont have a super long running query) or the developer will just take the performance hit and you let the function run everything in the result set - no matter its size.

Idea priority Medium
  • Guest
    Reply
    |
    Dec 4, 2023
    Thank you for confirming that this request is not valid, but due to the default ACS configuration. Declining Idea to close it out.

    Db2 for i development team
    IBM Power Systems Development
  • Guest
    Reply
    |
    Dec 4, 2023

    I don't think you have hit the QCMDEXEC scalar function max limit.

    It sounds like you are using ACS "Run SQL script" to execute these statements and ACS retrieves 100 rows be default.

    This means that the QCMDEXEC scalar function only process 100 times before it stops, you can then click the icon that looks like a download button at the right lower side to execute the rest.

    Another approach, if you are on the latest ACS version, is to configure another number than 100:

    From the "Run SQL script" screen, select "Edit" > "Preferences..." and the "Results" tab and change "Number of rows to retrieve at a time" to a number that suits your needs.

    2 replies