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 Languages - RPG
Created by Guest
Created on Mar 7, 2018

Enhance strong typing specs

ILE and especially RPG should provide means to force strong typing to satisfy specific requirements. There is a medium urgency for parameters declared CONST, but, in my opinion, there is an urgent requirement for type checking regarding data structures as parameter and return values alike.


Use Case:

Currently there is no option to rule out runtime-errors on numeric fields that are declared too short to hold longer target values or data structures at all.


Idea priority Medium
  • Guest
    Reply
    |
    Nov 15, 2019

    IBM believes that the request described has been solved and is available with the enhancement that provides OPTIONS(*EXACT) for prototyped parameters.

    This enhancement is available with the following PTFs:

    - 7.3 TGTRLS(*CURRENT) - SI71534
    - 7.4 TGTRLS(*CURRENT) - SI71536
    - 7.4 TGTRLS(*PRV) - SI71538

    See the "What's new since 7.3" or "What's new since 7.4" sections of the ILE RPG Reference. (The inforomation is the same in both manuals.)

    https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasd/rpgrelv7r3post.htm
    https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzasd/rpgrelv7r4post.htm

  • Guest
    Reply
    |
    Jul 6, 2018

    Thank you for the detailed explanation. 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.

    If this requirement is implemented, it would likely be on a parameter-by-parameter basis, with a new parameter option OPTIONS(*EXACT), which would require the passed parameter to be an exact match for the parameter even if CONST or VALUE was coded, and it would also mean stricter rules for a parameter passed by reference which allows longer strings or data structures to be passed. For a parameter defined as a data structure, OPTIONS(*EXACT) would require the passed parameter to be related by LIKEDS to the prototyped parameter.

  • Guest
    Reply
    |
    May 3, 2018

    Attachment (Use case): The attached file should give a brief explanation of why more strict and strong typing rules are required. Basically the whole thing is heading in the same direction with Thomas Raddatz' request for bringing the back the requirement for Prototyping exported functions.

  • Guest
    Reply
    |
    Apr 4, 2018

    Please provide a detailed example of the type of error that should be flagged by the compiler.

  • Guest
    Reply
    |
    Mar 8, 2018

    Does that really qualify as type checking? I thought ILE RPG was already a heavily typed language in the context of variable definition so aren't you really looking for better feedback reporting of your error condition?