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).
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:
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 an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
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.
See this idea on ideas.ibm.com
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 |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
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
Db2 for i development team
IBM Power Systems development