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 Under review
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Jun 18, 2026

REPEATPARMS Support for Repeating Prototype Parameters

Problem Statement

Today, RPG prototypes require every parameter to be explicitly declared. When interfacing with APIs that accept repeated name/value pairs or variable argument lists, developers must manually duplicate parameter definitions dozens or hundreds of times.

Example:

Dcl-Pr nox_Object pointer extproc(*CWIDEN : 'nox_Object');

name00 Like(UTF8_1K) const options(*nopass:*varsize);
valu00 pointer value options(*nopass:*string);

name01 Like(UTF8_1K) const options(*nopass:*varsize);
valu01 pointer value options(*nopass:*string);

name02 Like(UTF8_1K) const options(*nopass:*varsize);
valu02 pointer value options(*nopass:*string);

// repeated many times...
End-Pr;

For APIs that support a large number of arguments, the prototype can become hundreds of lines long solely to accommodate optional repeated parameter pairs.

Requested Enhancement

Introduce a prototype keyword that allows a parameter (or parameter group) to be repeated automatically.

Example syntax:

Dcl-Pr nox_Object pointer extproc(*CWIDEN : 'nox_Object');

name Like(UTF8_1K) const
options(*nopass:*varsize)
repeatparms(*MAX);

value pointer value
options(*nopass:*string);

End-Pr;

or alternatively:

Dcl-Pr nox_Matrix pointer extproc(*CWIDEN : 'nox_Matrix');

Matrix_Name Like(UTF8_1K) const options(*varsize);

RepeatParms(10);
name Like(UTF8_1K) const options(*varsize);
value pointer value options(*string);
End-RepeatParms;

RepeatParms(*max);
vectors pointer value;
End-RepeatParms;

End-Pr;

Benefits

  1. Improved interoperability with C APIs

Many C APIs use variadic arguments or repeated name/value pairs. RPG currently requires artificial prototype expansion to interface with such APIs. Native support would significantly simplify interoperability.

  1. Reduced source code bloat

Large prototypes can contain hundreds of nearly identical parameter definitions. This negatively impacts readability, maintainability, and source size.

  1. Better tooling support

Documentation generators such as ILEDocs must currently process and publish hundreds of duplicate parameter entries. A repeatable parameter definition would produce cleaner API documentation and metadata.

  1. Easier API design

Library authors can expose flexible builder-style interfaces without generating excessive prototype definitions solely to satisfy compiler requirements.

  1. Backward compatibility

This enhancement can be implemented as a new prototype keyword with no impact on existing RPG source code.

Example Use Case

The noxDB graph builder API allows callers to create JSON-like objects using repeated name/value pairs:

node = nox_Object(
'name' : 'Scott' :
'city' : 'Montreal' :
'age' : '42'
);

Today this requires manually defining dozens or hundreds of optional parameter pairs. With repeatable parameters, the prototype could accurately describe the interface while remaining concise and maintainable.

Idea priority High
  • Guest
    Sep 8, 2026

    The CAAC has reviewed this IBM Idea and recommends that IBM view this as a medium priority Idea that should be addressed.

    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 IBM Ideas on the broader IBM i community and has therefore reviewed your Idea.

    For more information about CAAC, see www.common.org/caac

    Brandon Pederson - CAAC Program Manager

  • Guest
    Jul 9, 2026
    IBM has received your Idea and is evaluating it. IBM will provide a response after evaluation is complete.

    - IBM Power Systems Development