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 SQL VARCHAR() scalar function under DB2 for i supports lengths of up to 32k or 32k-1 w/Nullable values. HLL on IBM i support 64k Varchar column/fields as well as 16MB Varchar lengths. Other Platforms (Microsoft) also support much longer lengths (2Gb).
Using a high-level Language such as RPG IV, developers have the ability to retrieve data from Web sources, such as Watson/IBM Cloud and store that information. While fixed-length fields support very long data results, the SQL VARCHAR function and column attribute supports only 32k. This length is "old" and should be increased to at least 64k but I would prefer 16MB or even 2GB to be compatible with other platforms.
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.
BM does not intend to provide a solution to this request at this time, so it is being closed.
As mentioned in prior updates, the structure of a VARCHAR data type in host languages and internally is a 2-byte binary length followed by the data. The VARCHAR scalar function has the same length limitation since the result data type is VARCHAR. To work with longer character data, the CLOB function resulting in a CLOB data type must be used. A CLOB can handle all the lengths supported by VARCHAR, so it is the preferred data type for any situation where more than 32K might be needed.
If you want to go beyond approximately 32K, you must use the CLOB scalar function because the result is a CLOB not a VARCHAR.
You can use the CLOB function for must smaller values as well.