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 (

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 ( - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal ( - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM. - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace IBM i
Created by Guest
Created on Dec 15, 2021

Command (CRTCMD) to also run SQL stored procedures and functions

Today you can create commands to be used from command line and build them into CL programs. CL commands works as parameter wrappers and calls programs.

It will be great if the command concept also could be extended to be able to directly call SQL stored procedures and SQL functions

Today you can do this by creating a program that calls the procedure, however it is a necessary step that only acts a boilerplate. It will be much cleaner to simply invoke the stored procedure directly from a OS command.

Note that the RTVVAR feature of commands is important to get data back from procedures and functions

Use Case:


where SQLTYPE can be *PROC or *FUNC

The parameters for the commands is declared as usual in the member in QCMDSRC as it would be for any other CL/RPG/C/COBOL program.

Idea priority Medium
  • Guest
    Jan 12, 2022

    The comment below is missing two central points:

    1) that return values can not be handled with RUNSQL, which was the main goal.

    2) Also that this RFE will potentially bring a lot SQL functionality to the CL language. All SQL build in scalar function could potentially become CL commands : ie ENCRYPT_ , REGEXP_ etc.

  • Guest
    Jan 10, 2022

    The RUNSQL CL command allows an SQL statement to be run directly from an interactive green screen session or from within a CL program without needing a source file. The RUNSQLSTM commands allows to run a group of SQL statements from an IFS file or source physical file.

    IBM does not intend to provide a solution to this request at this time, so it is being closed.

  • Guest
    Dec 21, 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 - Languages - CL (Control Language)
    Operating system - IBM i
    Source - COMMON

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