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 (

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 ( - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal ( - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM. - 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 Languages - RPG
Created by Guest
Created on Sep 16, 2016

Change the RPG compiler to add an option like ALIGN(*FULL)

The C compiler pads out a struct so that its length is a multiple of its alignment. So if the struct contains a pointer, the length will be a multiple of 16. RPG does not do this, even with the ALIGN keyword, so the RPG data structure might be up to 15 bytes smaller than the C structure. The regex_t struct in qsysinc/h(regex) is an example of this; the C struct is 656 bytes long, but the natural RPG version is only 644 bytes long.
Please change the RPG compiler to add an option like ALIGN(*FULL) to match the C struct.

Use Case:

The new option align(*full) is useful (actually required) when call certain C functions, e.g. regcomp(), from RPG. Without align(*full) the RPG structures are shorter than the C structures, causing problems due to unintentionally changed memory.

Idea priority Medium
  • Guest
    Mar 30, 2017

    PTFs are available for 7.2 and 7.3 to provide support for a *FULL parameter for the ALIGN keyword. With ALIGN(*FULL), the length of an aligned data structure is a multiple of the data structure's alignment.

    The enhancement is available for 7.2 target release *CURRENT, and for 7.3 target releases *CURRENT and *PRV.

    For 7.2, either get DB2 PTF group SF99702 Level 16, or get PTF SI63821.

    For 7.3, either get DB2 PTF group SF99702 Level 4, or get PTF SI63822 for target release *CURRENT and PTF SI63964 for target release *PRV.

    For more information, see the following page in the RPG Cafe wiki:

  • Guest
    Feb 14, 2017

    IBM intends to provide a solution for a future release, and also to provide PTFs for 7.2 and 7.3 timed with a future Technology Refresh. However, IBM's plans may change and no commitment is made that a solution will be provided.

  • Guest
    Sep 19, 2016

    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. IBM will use votes and comments from others in the community to help prioritize this request.

  • Guest
    Sep 17, 2016

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