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 Aug 1, 2023

SQLRPGLE precompiler - allow usage of large VARCHARS by interpreting the same as SQLTYPE(CLOB)

Currently you cannot use large RPGLE VARCHARs (length >= 32705) in EXEC SQL statements.

I suggest updating the SQL precompiler and SQL processing so that they can be.

This would remove the need for defining SQLTYPE(CLOB) in new programs, VARCHARs could be used instead. And as a result, CLOB data would become interoperable with all the regular RPGLE BIFs such as %trim, %scan, %xlate, etc. with no conversion, and no need to reference different variants of the variable name in different circumstances.

A VARCHAR with a 4 byte prefix (either explicitly with VARCHAR(x:4), or implicit with VARCHAR(x) where x > 65535) has an identical structure in memory to the SQLTYPE DS (4 bytes unsigned int for length, then x bytes character), and the SQL precompiler, when it converts SQL statements, references with with %ADDR so I think this would be a pure precompiler change?

Supporting VARCHARs with a 2 byte prefix would I guess be more complicated as the SQL processing that references the address must know if it has a 2 byte or 4 byte prefix and act accordingly.

This would apply to the other LOB types too, not just CLOB.

This is Intended as an improvement on this other IDEA: https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-3732 which suggests the ability to optionally have the SQL precompiler convert SQLTYPE(CLOB) to a VARCHAR(x:4) instead of to the UNS(10)/CHAR(x) DS. The difference being that IDEA might only be SQL Precompiler changes, whereas this one is more complicated.

Thanks to Scott Klement, and JonBoy of https://code400.com/forum, for the discussion - sorry I forgot about it for so long!
https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle/151378-safe-to-pointer-overlay-a-varchar-onto-a-clob

Idea priority Medium
  • Admin
    Carmelita Ruvalcaba Cevallos
    Reply
    |
    Apr 23, 2024

    The CAAC has reviewed this IBM Idea and recommends that IBM view this as a high priority Idea that is important to be addressed.

    As more and more webservices are being used and large data sets are being passed into the database, this is of value.

    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

    Carmelita Ruvalcaba - CAAC Program Manager

  • Guest
    Reply
    |
    Aug 29, 2023
    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