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.
See this idea on ideas.ibm.com
There is no QGY (open list API) for Members of a file. There are however SPOOL files and Message ID Open LIst APIs (those that start with the QGY prefix). Provide an Open LIst (QGYOLMBRL) (Open List Member List) to allow developers to process a list of members in a Generic File name (more than one file). This will allow SQL Db2 udtf to be created to list members in a file more consistently than current options.
I want to create an SQL UDTF to list the (source) member names and descriptions for a file. That file is often specified as a generic name, e.g., Q*
An Open List (QGYxxxx) API would allow me to create such as UDTF more efficiently than using QUSLMBR which dumps everything into a user space.
Idea priority | High |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
The "IBM i Service" or SQL View as we call it, is painfully slow when initially accessed.
This is a workable way to the data in question, but no better than and usually worse than using legacy techniques such as DSPFD to an OUTFILE. #Disappointing
This support is possible with an IBM i Service
This support has been delivered with an IBM i Service .. Use the following
The CAAC has reviewed this requirement and recommends that IBM not implement this request since a solution already exists, as Rob Berendt pointed out below.
Background: The COMMON Americas Advisory Council (CAAC) members have a broad range of experience in working with small and medium-sized IBM i customers. CAAC has a key role in working with IBM i development to help assess the value and impact of individual RFEs on the broader IBM i community, and has therefore reviewed your RFE.
For more information about CAAC, see www.common.org/caac
For more details about CAAC's role with RFEs, see http://www.ibmsystemsmag.com/Blogs/i-Can/May-2017/COMMON-Americas-Advisory-Council-%28CAAC%29-and-RFEs/
Nancy Uthke-Schmucki - CAAC Program Manager
I reread your request. The API wasn't desired for speed, it was so that you could do something like:
SELECT system_table_schema, system_table_name, system_table_member, source_type, last_change_timestamp
FROM QSYS2.SYSPARTITIONSTAT
WHERE SYSTEM_TABLE_SCHEMA = 'ROUTINES'
AND SYSTEM_TABLE_NAME like('Q%')
ORDER BY system_table_member;
Try this.
However I get that if you have 2,000,000 partitions (barring any system limits) it may take awhile to generate that list. Cursor perhaps?
Try this:
-- category: Custom
-- description: List members (partitions) in a table
--
-- List partitions in a table
--
SELECT system_table_member
FROM QSYS2.SYSPARTITIONSTAT
WHERE SYSTEM_TABLE_SCHEMA = 'ROUTINES'
AND SYSTEM_TABLE_NAME = 'QRPGLESRC';
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/db2/rbafzcatsyspstat.htm