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 Dec 2, 2020

Add support for *LAST in CREATE ALIAS

CREATE ALIAS command allows to create aliases for a specific MEMBER of a physical table on IBM i, but the alias has to be explicitly named. Many applications add members periodically and start filling rows in the last member.

Having the ability of CREATE ALIAS... TABLE(*LAST) will avoid the complexity of adding create alias to programs or CLs that creates new aliases on physical files.


Use Case:

the user needs to periodically query the content of the last member with SQL on multimember tables.


Idea priority Medium
  • Guest
    Reply
    |
    Jun 13, 2024
    This enhancement was delivered in June 2024 with IBM i 7.5 PTF Group level 7 and IBM i 7.4 PTF Group level 28.

    The CREATE ALIAS statement has been enhanced to allow a member name of *LAST. This alias indicates the most recent member in a source file is to be used, resolved when an SQL statement referemces it.

    You can read about it on the fact page here:https://www.ibm.com/support/pages/node/7148991
    And in IBM Documentation here: https://www.ibm.com/docs/en/i/7.5?topic=statements-create-alias

    Db2 for i development team
    IBM Power Systems Development
  • Guest
    Reply
    |
    Feb 26, 2021

    IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it.

  • Guest
    Reply
    |
    Feb 4, 2021

    *LAST would be very nice indeed but what about *ALL ?
    That would be like a SQL union that can read thru all members.

  • Guest
    Reply
    |
    Dec 16, 2020

    Thank you for your input. We will use that as we continue to evaluate this request. IBM will provide a response after evaluation is complete.

  • Guest
    Reply
    |
    Dec 9, 2020

    Thank you very much:

    From a functional perspective, my preferred option is that the *LAST be evaluated at query time, so each time the alias is used, it will be answering with rows on the actual last member at query time.

    If that is not possible (or impractical, or have a high impact on performance), I think is good enough to implement a version where *LAST be evaluated at CREATE ALIAS execution time, and, if users need to refresh the definition, they can execute a CREATE OR REPLACE ALIAS... which in any case is easier than creating Stored Procedures that check the last member of a file to create a new alias or creating stored procedures with an OVRDBF.

  • Guest
    Reply
    |
    Dec 7, 2020

    If the CREATE ALIAS statement were to support a value of *LAST, is the expectation that the alias is created with the current *LAST member, or should the value of *LAST get determined each time the alias is used in another SQL statement?

  • Guest
    Reply
    |
    Dec 6, 2020

    IBM has received the requirement and is evaluating it. IBM will provide a response after evaluation is complete.