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 Functionality already exists
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Mar 12, 2026

Enhance %CHAR to prevent full zero-suppression

Today there is no way to generate a result when less than 1.00 that includes that first leading zero. As in '0.53'. The result is always '.53'. See code below (sorry I can seem to get embedded line-feeds to appear in this RFE):

dcl-s sales Packed(7 : 2)  Inz(0.53);

dcl-s cgi_Sales char(20);

cgiSales = %char(sales);

// CGISALES = '.53'


My user's dislike this.

There is the DECEDIT ctl-opt keyword, however I end up with: '0,53' instead (note the comma instead of period).

Changing the DECFMT JOB attribute and then compiling with DECEDIT(*JOBRUN) provides similar results '0,53' #sad

I'd like to simply use %CHAR or similar, and have an extra parameter that says "don't fully zero suppressed. Perhaps something similar to:

%char( sales : 1);   

where the 2nd parameter is the number of significant digits to the left of the decimal notation to retain regardless of the value.

I even tried creating a user-defined Edit code, but apparently IBM i now ships with all 5 available edit codes pre-loaded. So we can't really use that.

Today my solution is:

if (sales < 1);
cgiSales = '0' + %char(sales);
else;
cgisales = %char(sales);
endif;
Idea priority Medium
  • Guest
    Mar 26, 2026

    Okay, so the documentation that indicates 0 followed by a coma also supports a 0 followed by a decimal point/period. Thanks. Did know that.

  • Guest
    Mar 26, 2026
    Thank you for taking the time to submit your Idea. However, an enhancement to RPG is not necessary for %CHAR to always provide the leading zero.

    RPG has always supported DECEDIT('0.'). This causes %CHAR to include the leading zero if the value is less than 1.

    https://www.ibm.com/docs/en/i/7.6.0?topic=keywords-deceditjobrun-value

    - IBM Power Systems Development
  • Guest
    Mar 26, 2026

    Wouldn't it be a better idea, to add a Format in the second parameter (similar to the VARCHAR_FORMAT function in SQL)? 

    But contrary to SQL it would be great if the decimal pointer could be either dot or comma!

    Something like this: %Char(MyNumber: '9,999,990.00');