Running External SQL Stored Procedures
- Use the menu option in the SQL editor pop-up menu.
- Use the menu option in the SQL editor pop-up menu.
- Use the
Run toolbar button. - Open the pop-up menu for a stored procedure object in the Catalog navigation and select the Call Routine option.
The Input Parameters dialog includes Load and Save options, allowing users to export parameter values to an XML file or load them back later. This is especially useful for large or frequently reused parameter sets. The dialog displays single-line fields for basic types and multi-line fields for XML and LOB types.
The results of the call operation are shown in the Execution Status dialog, where you can see any warnings or errors and link to more information about SQL codes and status. The CALL request is also added to the Query History folder of the Db2 for z/OS connection.
Creating a run configuration
- To open the Run Configurations window, click .
- In the navigation list, right-click Db2 for z/OS Routine and select New Configuration. A new configuration is added to the navigation list as a child of Db2 for z/OS Routine, and the new configuration page opens in the Run Configurations editor pane.
- On the new configuration page, click Browse, and then type a search
string, such as *.spsql in the text field. This string matches all stored
procedures is defined in a local or remote z/OS project in the z/OS Projects view.

- Select a stored procedure from the list and click OK.
- In the Name field on the new configuration page, type a name for the new configuration.
- To save the run configuration, click Apply.
Mapping remote files
IBM® Developer for z/OS® defines the SQL editor as the default editor for files with the extension .spsql. Files or partitioned data sets that define stored procedures must have this file extension.
The product provides a z/OS data set mapping definition called **SPSQL, that maps members of partitioned data sets with the SPSQL low-level qualifier to workstation files with the .spsql extension. This mapping ensures that the default editor association is recognized for data set members.
To ensure that the file mapping functions correctly, verify that the **SPSQL z/OS file system mapping precedes the **SQL mapping in the z/OS File System Mapping view. To change the order of the **SQL and **SPSQL mappings, right-click the **SPSQL mapping and select Raise Priority.
