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
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.
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 |
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.
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.
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