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.
Today,
RSEAPI_SQLRequestappears to support only static SQL text through thesqlStatementfield. What I’m requesting is the ability to use parameter markers (?) with bound parameters for OUT parameters, similar to JDBC/ODBC prepared statements.This would enable two key scenarios:
IN parameter binding (avoid concatenating values into the SQL string)
OUT parameter retrieval (capture return codes/status values from stored procedures)
Generic Example: Calling a Stored Procedure with an OUT Return Code
Goal: Call a procedure that performs an operation (e.g., file transformation) and returns a status/return code via an OUT parameter.
SQL statement (with parameter markers):
SQLCALL MYLIB.MYPROC(?, ?, ?)
Parameter 1:
IN(VARCHAR) → input pathParameter 2:
IN(VARCHAR) → output pathParameter 3:
OUT(INTEGER) → return/status codeWhat I’d like to express via RSEAPI_SQLRequest (pseudo-structure)
(This is an illustrative example; the exact field names could vary. The intent is to show the capability needed.)
{
"sqlStatement": "CALL MYLIB.MYPROC(?, ?, ?)",
"parameters": [
{ "index": 1, "direction": "IN", "type": "VARCHAR", "value": "/tmp/input.txt" },
{ "index": 2, "direction": "IN", "type": "VARCHAR", "value": "/tmp/output.bin" },
{ "index": 3, "direction": "OUT", "type": "INTEGER" }
]
}
And then receive the OUT parameter values in the response:
{
"success": true,
"outParameters": [
{ "index": 3, "type": "INTEGER", "value": 0 }
],
"sqlDiagnostics": {
"sqlState": "00000",
"message": "Procedure completed successfully"
}
}
Why this enhancement matters
Functional: Without OUT parameters, it’s hard (or impossible) to reliably capture procedure results (return code/status) without workarounds.
Security & robustness: IN parameter binding avoids string concatenation and reduces injection risks.
Consistency: Aligns RSE API behavior with common SQL execution patterns (prepared statements + bound parameters).