
Chapter 10. DB2 Development Tools 239
Figure 10-16 SQL procedure sample
2. An iSeries Navigator Run SQL Script session needs to be active to start the debug mode.
A debug session is initiated by going to the Run pull-down menu and selecting the
Debugger task, as shown in Figure 10-17.
Figure 10-17 Start debugger
3. The Debugger task will cause the Start Debug dialog window to be started on the client,
as shown in Figure 10-18 on page 240.
CREATE PROCEDURE myschema.ship_it(IN ordnum INTEGER, IN ordtype CHAR(1),
IN ordweight dec(3,2))
LANGUAGE SQL
SET OPTION DBGVIEW =*SOURCE
sp: BEGIN
DECLARE ratecalc DECIMAL(5,2);
/* Check for international order */
IF ...