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 Core OS
Created by Guest
Created on Aug 14, 2021

Provide a GET SQL OBJECT TYPE for IBM i Objects API

We need a way to pass in an IBM i object and return a value that indicates (A) The SQL Object Type and (B) whether or not is is an SQL Object.

Effectively this would allow us to check if the object is an SQL object and obtain its SQL Object Type. For example, if a user provides a Data Area Name, we'd like to know by passing that name into this API that it is an SQL SEQUENCE or just a regular data area. In the latest builds of OBJECT_STATISTICS this information is available, however a one-object API is what's called for, for better HLL usage and less overhead.


Use Case:

A user (programmer, end-user etc.) passes in the name of an object, the application calls this API to determine if (A) The Object Exists, and (B) What the SQL Object Type is for the object.
Here's an example in RPG IV of calling it:

dcl-ds rtnInfo Qualified Inz;
object_found char(1);
isSQLObject char(1);
rtnLib char(10);
rtnObjType char(10);
sqlType char(32);
long_object_name char(128);
long_schema_Name char(128);
end-ds;


dcl-ds Object Qualified;
name char(10);
library char(10);
end-ds
dcl-s OBJTYPE char(10);
object.name = 'ORDERS';
object.library = 'QGPL';
objType = '*DTAARA';

call QSQRSOT( rtnInfo : object : objtype);

if (rtnInfo.object_found = '1'); // Object Located!
if (rtnInfo.isSQLObject = '1'); // It is an SQL Object!
if (rtnInfo.SQLType = 'SEQUENCE');
values next value...
endif
endif;
endif;


As you can see from the returned data structure, the SQL name and schema along with the Object Type would be returned, in addition to the Exists flag, and the Is_SQL_Object flag and SQLType.


Idea priority Medium
  • Guest
    Reply
    |
    Nov 29, 2021

    IBM agrees that returning the SQL object attributes is useful information to return on an API interface.
    IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it.

  • Guest
    Reply
    |
    Oct 19, 2021

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Core OS
    Operating system - IBM i
    Source - None

    For recording keeping, the previous attributes were:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Db2 for i
    Operating system - IBM i
    Source - None

0 MERGED

Support SQL Type ("SQL Object Type") as an Object Attribute

Merged
With the pervasiveness of SQL on IBM i and the fact that most public-visible new release features are simply SQL enhancements, the SQL Type of an object is becoming more and more important to application development. As of this point in time, *DTA...
over 3 years ago in IBM i / Core OS 3 Future consideration