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
Created by Guest
Created on Dec 7, 2021

RDI Version: 9.6.0.11 20210819_0803 Valid json_table syntax in DDL gives error when creating SQL function

json_table syntax in DDL gives error when creating SQL function
RDI Version: 9.6.0.11 20210819_0803

for
select productNo_json, wantedQuantity_json, wantedDate_json, availableQuantity_json, availableDate_json
from json_table (
yxdb.call_service (
URL => trim(url_body) || trim(url_params)
,LOGIN =>'XXXX'
,"PASSWORD" =>'XXXXX'
),
'strict $'
columns (
productNo_json varchar(64) path '$.ProductNo',
wantedQuantity_json varchar(64) path '$.WantedQuantity',
wantedDate_json varchar(64) path '$.WantedDate',
availableQuantity_json varchar(64) path '$.AvailableQuantity',
availableDate_json varchar(64) path '$.AvailableDate'
)
)
do
pipe (productNo_json , wantedQuantity_json , wantedDate_json, availableQuantity_json, availableDate_json);
end for;


IBM i access, SQL editor accepts the syntex and allows to create the SQL function

Best regards,
Wart Sepp YX
wart.sepp@yx.dk


Use Case:

json_table syntax in DDL gives error when creating SQL function
RDI Version: 9.6.0.11 20210819_0803

for
select productNo_json, wantedQuantity_json, wantedDate_json, availableQuantity_json, availableDate_json
from json_table (
yxdb.call_service (
URL => trim(url_body) || trim(url_params)
,LOGIN =>'XXXX'
,"PASSWORD" =>'XXXXX'
),
'strict $'
columns (
productNo_json varchar(64) path '$.ProductNo',
wantedQuantity_json varchar(64) path '$.WantedQuantity',
wantedDate_json varchar(64) path '$.WantedDate',
availableQuantity_json varchar(64) path '$.AvailableQuantity',
availableDate_json varchar(64) path '$.AvailableDate'
)
)
do
pipe (productNo_json , wantedQuantity_json , wantedDate_json, availableQuantity_json, availableDate_json);
end for;


IBM i access, SQL editor accepts the syntex and allows to create the SQL function

Best regards,
Wart Sepp YX
wart.sepp@yx.dk


Idea priority Medium
  • Guest
    Reply
    |
    Jan 5, 2022

    This request for enhancement has been deemed a defect in our product. Please contact Rational Customer Support to file an APAR.

  • Guest
    Reply
    |
    Dec 7, 2021

    Attachment (Description)