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 Future consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Jul 30, 2025

Better error handling with record locking done in a procedure

Using procedures is far more beneficial than subroutines.  There is a catch though that record locks are not handled well in procedures.

 

Example 1 (works great):

Record level logic in subroutine, or in mainline.  When doing file/record level access (i.e. chain/read) and a record lock is encountered, a message is thrown with an option to [R]etry the action.  This often works/helps when the if the lock is no longer present.

 

Example 2 (not ideal, purpose of RFE):

Record level logic in procedure, or a linear main program.  When doing file/record level access (i.e. chain/read) and a record lock is encountered, the system automatically takes [C]ancel actions preventing an option to retry.  An inquiry message is thrown and there is no option to retry the failed action due to the lock condition (only options for C G D F).  This is not great and is more difficult to resolve.  There are ways to wrap the chain/read with (e) to trap/handle/retry the lock, but the amount of code to do this makes it a bulky solution.  IBM has confirmed this is the intended flow as the article/snippet below show.

https://www.ibm.com/docs/en/i/7.6.0?topic=gfc-record-locking

Note: Subprocedures do not get inquiry message, and so this situation should be handled by using an error indicator on the read operation and checking for status 1218 following the read.

 

Suggestion: 

Improve record lock handling when done in a procedure.  I realize this will not be able to be a default/global setting if IBM agrees to do this, but possible options are to enable this new behavior via a system value, jobs setting, job description attribute, etc.

 

Thank you for the consideration.

Idea priority Low
  • Guest
    Oct 22, 2025
    IBM will use this Idea as input to planning, but no commitment is made or implied. This Idea 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 Idea.

    If this idea is implemented, it would likely involve some new RPG syntax such as a new opcode extender or Control specification keyword.

    - IBM Power Systems Development
  • Guest
    Aug 7, 2025
    IBM has received your Idea and is evaluating it. IBM will provide a response after evaluation is complete.

    - IBM Power Systems Development