You can run IBM® database procedures or functions for testing purposes. When you run a procedure or function, you can determine whether the test run is successful and whether the result set exists. Running a procedure or function also helps you to test the logic of the routine and the accuracy of output arguments and result sets.
You can also run versions of z/OS native SQL procedures in the same way that you run procedures. This function is supported for DB2 for z/OS Version 9.1 or later.
To run a procedure or function:
The Run Options window opens.
If the data type of a parameter is CLOB,
when you click its Value cell, the
button is displayed. Either type a value in the
cell or click the button and select a file to use as
the parameter value for the CLOB.
If the data type of a parameter is BLOB,
when you click its Value cell, the
button is displayed. Either type a value in the
cell or click the button and select a file to use as
the parameter value for the BLOB.
If the data type of a parameter is XML, when you click
its Value cell, the
button is displayed.
Click the button, and then in the Open window, select
the file whose content provides the XML value for the
parameter.
Version 9.7 for
Linux®, UNIX®, and
Windows®, or later: If a parameter is an array
data type, when you click its Value cell, the
button is displayed.
Click the button, and then in the
Specify
Array Values window, enter values for the
array.
A run task message and a status message are displayed in the Output View. Result sets are displayed in the IBM Data Designer.
Some screen readers have problems reading values in the results grid. The Microsoft® Inspect Object screen reader is slow recognizing the cell information. The screen reader JAWS® for Windows does not read the data in the first cell of the last row in the grid.
For detailed information about each of the filter options, see Data, Designer.
After you have run the procedure or function and filtered the result data, you can export the data that is displayed in the designer.
Managing Procedures, Functions, and Objects | Run Options | Exporting Result Data from Procedures and Functions | Transforming XML Data | HTML Visualizer | Array Parameters in DB2 SQL Procedures