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 Is a defect
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on Aug 2, 2021

Correct accuracy of inline error location in ILE C compiler for SQL

When using SQL to create a User Defined Function, the RUNSQLSTM and other interfaces generate C source code and compile it. When the developer also uses the INCLUDE statement in that same code, to pull in some "inline C" code, when there are errors identified in the compiler listing, they are never inserted into the correct location in the code, making code correction of guessing game.


Use Case:

Create an SQL UDTF, such as CREATE TABLE FUNCTION using LANGUAGE SQL.
Within the body of that UDTF, include the "include" statement to pull in some inline C code.
Make sure there are syntax errors such as missing semi colon, or extra or too few parens, or the wrong type of variable as a parameter.

*=SEVERE==========> CZM0046 Syntax error.

or other CZMnnnn errrors are embedded by the compiler into the listing, 80 to 90% of the time they appear in the wrong location (too far below the actual error, sometime as many as 10 lines or more out of place).

While this may seem like a bug, it needs to be resolved in the RFE process as I am doubtful it can be fixed using the SR process.


Idea priority Medium
  • Guest
    Reply
    |
    Nov 17, 2021

    To follow up: IBM Support did not attempt to correct the issue. instead they provided a temporary work around.
    That work around is to specify OUTPUT(*NONE) when creating UDTFs with inline C code because for some reason that allows the errors to point to the correct location in the code.
    This should always be the case, however since IBM is apparently working on re-working that entire interface, we can wait and see if the new way of doing this provides more accurate error identification capabilities and go from there.

  • Guest
    Reply
    |
    Sep 24, 2021

    IBM has identified this as a defect, not an enhancement request. Please contact your service representative to open a PMR, and mention this RFE.

    The listing with the CZM0046 message is the compiler listing and we believe this represents a defect in the C compiler.