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 Not under consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Aug 21, 2019

RETURN value from REXX Procedure to RPG/ILE via Prototype

I see the QREXX API and I know about the QREXQ API, but these are cumbersome to use when all you're looking for is a single RETURNed value from REXX. It would really be helpful if RPG/ILE would support a REXX-specific prototype, similar to the JAVA-specific prototype, but allowing REXX procedures to be directly invoked from RPG and allowing RPG to directly receive a return value from the REXX RETURN instruction.


Use Case:

It would really be helpful if RPG/ILE would support a prototype similar to the following to allow REXX procedures to be directly invoked from RPG and to allow RPG to directly receive a return value from the REXX RETURN instruction.

dcl-pr MyRexxProcedure varchar(32767) extproc(*REXX: member: srcfile: library);
rexxparms varchar(32767) options(*nopass);
initcmdenv char(20) options(*nopass);
exitpgmlist char(22) dim(8) options(*nopass);
end-pr;

As a use case, this would allow a simple RPG statement such as the following -- which is much easier to set up than to go through the multiple APIs and exit programs to achieve.

value = MyRexxProcedure(inputstring);


Idea priority High
  • Guest
    Reply
    |
    Apr 17, 2020

    IBM does not intend to provide a solution to this request at this time, so it is being closed.

    The ILE RPG compiler team has quite a long list of higher priority requirements, so this request is not likely to be implemented anytime soon.

  • Guest
    Reply
    |
    Aug 26, 2019

    Does anyone still use REXX?

  • Guest
    Reply
    |
    Aug 21, 2019

    I believe Dave has the right idea here. The current interface between REXX and other HLLs, when the other HLL is the "caller" is entirely too complex, and something needs to be done to simplify that. His suggestion is one excellent alternative approach.

    It might also help if IBM could provide more and better documentation for the various REXX APIs, perhaps providing some sample code or examples to show how to use them.

    I think REXX is severely under-valued, and IBM should be promoting it, not only for IBM i use, but for use on AIX and within PASE as well.