IBM Data and AI Ideas Portal for Customers

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:

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

Help IBM prioritize your ideas and requests

The IBM team may need your help to refine the ideas so they may ask for more information or feedback. The product management team will then decide if they can begin working on your idea. If they can start during the next development cycle, they will put the idea on the priority list. Each team at IBM works on a different schedule, where some ideas can be implemented right away, others may be placed on a different schedule.

Receive notification on the decision

Some ideas can be implemented at IBM, while others may not fit within the development plans for the product. In either case, the team will let you know as soon as possible. In some cases, we may be able to find alternatives for ideas which cannot be implemented in a reasonable time.

Additional Information

To view our roadmaps:

Reminder: This is not the place to submit defects or support needs, please use normal support channel for these cases

IBM Employees:

The correct URL for entering your ideas is:

Status Under review
Created by Guest
Created on Aug 12, 2021

Allow DB2 connection to be inherited by a subshell

With the db2 command it is possible to execute a wide variety of DB2 tasks from a shell environment. It is however not possible to use variable substitution in a way that feels natural in a Unix environment. The execution of a shell script starts without the existing connection since it it is not inherited by a subshell. It is necessary to either source the script or create a file with the SQL to be executed. There is also no feature to use variable substition in files containig sql.

This restriction is a pain point in my life as a developer, since it is extremely difficult to develop a toolset for my everyday tasks. As a simple example I would like to create a script <dbname> that lists the objects of a given database without supplying credentials that create a new connection although in the current shell it alredy exists.

Needed By Yesterday (Let's go already!)
  • Guest
    Oct 5, 2021

    Current design of the clp is that a backend process(db2bp) gets created in a new shell which serves to the front end process(db2) that fires the db2 commands in the new shell. These clp processes in the new shell are completely different from the clp processes in parent shell. Hence it can't inherit the connection from parent shell to the new shell.

    Request you to use one of the below options which you may already know

    1) Execute the script in the current shell itself(using . operator) as shown below instead of using a new shell

    . ./

    2) Use new shell to execute the script like below, but establish a connection in the shell script and then call the sql file.

    ./ dbname userid passwd

    Content of could be

    db2 connect to SAMPLE user $1 using $2

    db2 -vf test.sql

    Content of test.sql could be

    select * from mytab1