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 Delivered
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on May 26, 2016

Enhance QSYS2.PARTITION_STATISTICS function to include the member text when source file members are queried.

Please enhance QSYS2.PARTITION_STATISTICS to include the member text when source file members are queried.

Currently, this function returns the member name, the source type (i.e., RPGLE, PF, CLLE, etc.), the last source update timestamp, the source creation timestamp, and the "last source type and/or member text changed" timestamp. With the exception of the line that has "b.SOURCE_MEMBER_TEXT" in it, the following works on V7R* systems with appropriate TR levels.

SELECT A.DBXLIB as SRCPF_LIBR
, A.DBXFIL as SRCPF_NAME
, B.SYSTEM_TABLE_MEMBER as SrcMbrName
, B.LAST_SOURCE_UPDATE_TIMESTAMP as SRCPF_UDAT
, B.SOURCE_TYPE as SRCPF_SRCTYPE
, b.CREATE_TIMESTAMP as Source_Create_Timestamp
, b.LAST_CHANGE_TIMESTAMP as Source_Type_Text_Change_Timestamp
, b.SOURCE_MEMBER_TEXT
FROM QSYS.QADBXATR A
, LATERAL
( SELECT * FROM TABLE
( QSYS2.PARTITION_STATISTICS(A.DBXLIB, A.DBXFIL)
) AS X
) AS B
WHERE A.DBXATR = 'PF'
and A.DBXREL = 'Y'
and A.DBXTYP = 'S'
AND B.SOURCE_TYPE IS NOT NULL

Given what the existing function provides, including the source member text column is a very natural extension to it.


Use Case:

The goal of the SQL example above is to provide a quick method of identifying a given source member name anywhere on the system, regardless of the library. Part of identifying members properly is to have the member text associated with the source member name. This solution is intended to be used as part of an existing utility which currently relies on much more time-consuming methods, making it essentially useless for its intended function. The business justification for this is to allow developers to use a tool to *quickly* identify source members on the system, saving them time compared to the currently available methods to do something similar.


Idea priority Medium
  • Guest
    Reply
    |
    Sep 6, 2018

    Note that, on v7r1, the PARTITION_TEXT column that Scott mentioned in his "developer update" is actually named TEXT. Therefore, the following query now works with the latest DB2 PTF group on v7r1 and, I presume, likewise on newer versions:
    SELECT A.DBXLIB as SRCPF_LIBR
    , A.DBXFIL as SRCPF_NAME
    , B.SYSTEM_TABLE_MEMBER as SrcMbrName
    , B.LAST_SOURCE_UPDATE_TIMESTAMP as SRCPF_UDAT
    , B.SOURCE_TYPE as SRCPF_SRCTYPE
    , b.CREATE_TIMESTAMP as Source_Create_Timestamp
    , b.LAST_CHANGE_TIMESTAMP as Source_Type_Text_Change_Timestamp
    , b.TEXT as Source_Member_Text
    FROM QSYS.QADBXATR A
    , LATERAL
    ( SELECT * FROM TABLE
    ( QSYS2.PARTITION_STATISTICS(A.DBXLIB, A.DBXFIL)
    ) AS X
    ) AS B
    WHERE A.DBXATR = 'PF'
    and A.DBXREL = 'Y'
    and A.DBXTYP = 'S'
    AND B.SOURCE_TYPE IS NOT NULL

  • Guest
    Reply
    |
    Nov 30, 2016

    Hi,
    We delivered this to IBM i 7.1 and higher releases. If you get the latest DB2 PTF Group, the Partition_Text column has been added to QSYS2.SYSPARTITIONSTAT.

    Column details can be found in the latest version of the SQL Reference:
    PARTITION_TEXT
    LABEL
    VARGRAPHIC(50)
    CCSID 1200
    Nullable
    Text of the partition. Contains null if text does not exist for the partition.

    Thank you for the great idea.
    Scott Forstie

  • Guest
    Reply
    |
    May 27, 2016

    Creating a new RFE based on Community RFE #89070 in product IBM i.