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 Db2 for i
Created by Guest
Created on May 3, 2026

Enhance BOOLEAN support in SQL pre-compiler for ILE-RPG

Since the addition of the BOOLEAN data type in DB2 for i existing RPG programs might run into problems. The BOOLEAN support of the SQL pre-compiler is documented here.

Now if there is an existing table with a column "column1" of type CHAR(1) it was normal to directly store a RPG indicator in such as column:

create table table1 (
column1 char(1) not null default '0',
...
);

And in RPG:

dcl-s indVar ind inz(*on);
...
exec sql insert into Table1 (Column1) values (:indVar);

This pattern was quite wide-spread as the RPG data type IND is internally represented by a CHAR(1) field which can only be '0' or '1'.

But if the same code is recompiled today, the value in Column1 might end up as 'T' (for True) and 'F' (for False), because the pre-compiler now interprets IND host variables as BOOLEAN.

      *ON  / '1' -> 'T' or 'TRUE'
*OFF / '0' -> 'F' or 'FALSE'

The this handling is not IBM-i-ish, as it changes the behavior of a program by pure re-compilation. But existing programs - that are not re-compiled and access the same table/column - will not interpret 'T'/'F' correctly and expect '1'/'0' instead.

I propose to change the default conversion from BOOLEAN to CHAR(1) to this:

      *ON  / '1' -> '1'
*OFF / '0' -> '0'

At least please add an pre-compiler option or an environment variable, that sets the default value for the conversion of IND host-variables in the backward compatible way.

Idea priority Urgent
  • Guest
    May 28, 2026
    We understand the problem and will investigate possible solutions.
    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.

    Db2 for i development team
    IBM Power Systems Development
  • Guest
    May 3, 2026

    I would also add that the current (v7.6) pre-compiler is even worse than stated above because it tries to output a field length of 4 ('TRUE') which causes a -404 error at run time.

    If behaviour changes then the compiler should ALWAYS attempt to defend against this kind of thing by issuing an error message when incompatible behaviour will result.