> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DB2 for IBM i Execute Stored Procedure Configuration

> Treat data coming into the connector as input for a stored procedure, then pass the result down the flow.

The Execute Stored Procedures action treats data coming into the DB2 for IBM i connector as
input for stored procedures. The connector executes the stored procedure that you choose, then
passes the result down the flow (if applicable).

Follow these steps to configure a stored procedure:

<ol><li>Select a stored procedure from the drop-down menu. The available stored procedures depend on the connector and cannot be customized from CData Arc.
![Select stored procedure](https://docs.arc.cdata.com/26.4/images/dbsa_esp_select.png)
You can see the input and output parameters for the stored procedure, as well as any return values (if applicable).</li>
<li>Click **Test Execute Stored Procedure** to see what the structure of the input XML should look like.
![ESP test](https://docs.arc.cdata.com/26.4/images/dbsa_esp_test.png)</li>
<li>Complete the **Input** parameters and click **Test** to see what output will be generated. When you are satisfied with the test results, you can click **Save Sample Data** to make the data accessible to other connectors.
![ESP sample data](https://docs.arc.cdata.com/26.4/images/dbsa_esp_sample.png)</li></ol>

You can connect the DB2 for IBM i connector to an XML Map connector. The results of the Execute
Stored Procedure appear as inputs under the **Source** tree.

![ESP XML map](https://docs.arc.cdata.com/26.4/images/dbsa_esp_xmlmap.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.