Skip to Main Content
IBM Data and AI Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. 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

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


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.

IBM Employees should enter Ideas at https://ideas.ibm.com


Status Delivered
Workspace Db2
Components Serviceability
Created by Guest
Created on Dec 15, 2021

Make the Db2 Server and Client support ROWSET cursors

The Db2 server and client (Db2 Connect) today does not support ROWSET cursors.


Support of Multirow Fetch Db2 Precompiler and embedded Runtime support the fetch of multiple rows by using a single FETCH statement. Db2 ESQL enables arrays to be passed as a host variable (and as their indicators) while ESQL calls the FETCH statements as their output arguments (bind-outs) from the COBOL application. To pass the cardinality for the array FETCH statement, the Db2 Precompiler supports the “For n ROWS” clause in FETCH statement. The variable "n" in the "For n ROWS" clause can be an integer in the range 2 - 32767, a host variable declared as integer, or a short data type. If the “For n ROWS” clause is not specified, the Db2 precompiler for COBOL takes the cardinality of the array size based on the declared size of host variables that are used in the SQL. If the host variables used are of different sizes, the minimum size of all the host variables are used as the cardinality of the bulk/array. Users can check sqlca.sqlerrd(3), which indicates the number of records fetch.


The jdbc driver today support this capability following the required behavior as exist today in Db2 z/OS.


Multi-row SQL operations in JDBC applications

https://www.ibm.com/docs/en/db2/11.5?topic=applications-multi-row-sql-operations-in-jdbc


So, based on our journey to the cloud and digital transformation we need that feature - SQLERRD(3) maintains the number of rows returned in the fetch rowset statement like DB2 z/OS - to be available on Db2 Connect.

Needed By Month
  • Guest
    Reply
    |
    Mar 25, 2022

    Using a cursor is analogous to holding your finger on a certain line of text on a printed page. A cursor is used by an application software in Db2 to point to one or more rows in a collection of rows fetched from a table five nights at freddy's

  • Guest
    Reply
    |
    Feb 22, 2022

    Declaring Cursor -> EXEC SQL DECLARE cursor-name/cursor-variable-name SCROLL CURSOR FOR select-statement FOR FETCH ONLY END-EXEC. Opening Cursor -> EXEC SQL OPEN cursor-name/cursor-variable-name END-EXEC. Location voiture Casablanca pas cher

  • Guest
    Reply
    |
    Dec 15, 2021

    Well, unfortunately it is not a "detail in the application". And the tests executed with the Db2 Connect did not work. We worked with the IBM Db2 Support Team on that and it seems to be a gap. Thus, the guidance from support was for open this idea (RFE) in a way for improve the software and provide the same experience as provided on jdbc and on Db2 z/OS.

  • Guest
    Reply
    |
    Dec 15, 2021

    Accessing a DB2 database on the mainframe platform or on LUW should only be a detail in the application. The application should work exactly the same on both accesses, and therefore DB2 Connect has to allow this transparency.