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.
Your Idea has two aspects. The first aspect is already available. The second aspect is a duplicate of IBMI-I-1111.
1. Create an externally-described data structure where the subfields have the same names as the fields in the file, but they have the indicator data type.
2. Have those indicators defined as the SQL-type of null indicator (2-byte integer) so it can be used in an SQL select statement.
The first aspect of your request, to use *NULLIND with LIKEDS, is already possible, although you would use EXTNAME or LIKEREC with *NULL to get a data structure with the indicator subfields.
DCL-DS @mydsNull EXTNAME('MYFILE' : *NULL ) qualified END-DS;
or
DCL-F myfile;
DCL-DS @mydsLikerecNull LIKEREC(myfileFmt : *NULL) INZ;
@mydsNull and @mydsLikerecNull have indicator subfields with the same names as the fields in file MYFILE.
https://www.ibm.com/docs/en/i/7.5?topic=keywords-extnamefile-nameformat-nameall-inputoutputkeynull
https://www.ibm.com/docs/en/i/7.5?topic=keywords-likerecintrecnameextract-types
However, this does not address the second aspect of your request, to use this data structure in an SQL SELECT statement. The subfields in a *NULL data structure are RPG indicators, with values like '0' and '1'. The @mydsNull data structure would not be supported for the SELECT statement since that expects 2-byte integers (the SQL-style of null indicator).
The duplicated Idea IBMI-I-1111 is requesting the ability to create a data structure similar to a *NULL data structure, but with SQL-style 2-byte integer null indicators.
-IBM Power Systems Development
This should be an addition to the SQL pre compiler - like the special SQL data types for CLOB, etc.
- IBM Power Systems Development