Home About Courses Schedule Services Webinars Contact Search

Db2 for LUW SQL PL Stored Procedure Development


Duration: 3.0 days

Method: Instructor led, Hands-on workshops

Price: $1800.00

Course Code: DB1028


Analysts and programmers involved in the development of Db2 LUW SQL PL Stored Procedures.


One of the most common approaches to coding stored procedures is using the SQL PL language. A key advantage is the ability to work entirely within the IBM Data Studio environment and accomplish Db2 SQL PL development, deployment, and testing. This course covers an overall review of stored procedures, the SQL PL language, and the process of developing, deploying, and testing SQL PL stored procedures using the IBM Data Studio tool. Hands on coding of many stored procedures are part of the class.


Upon successful completion of this course, the student will be able to:

  • Understand the benefits of Stored Procedures
  • Learn the SQL Procedural Language
  • Code Db2 Stored Procedures using the SQL Procedure Language
  • Use the IBM Data Studio to develop, deploy, and test SQL Procedures
  • Use the Unified Debugger to test and troubleshoot stored procedures


Understanding of relational database concepts and SQL syntax (Db2 SQL For Everyone or equivalent).


  • I. Introduction to Stored Procedures
    • What are Stored Procedures?
    • Problems Solved Using Stored Procedures
    • Advantages of using Stored Procedures
    • Calling a Stored Procedure
  • II. The SQL Procedure Language
    • CREATE PROCEDURE statement
    • Declaring SQL Variables
    • Procedural Statements in SQL PL
    • Creating & Retrieving Result Sets
    • Calling another Stored Procedure
    • Logic Considerations
    • Best Practices
  • III. IBM Data Studio
    • Introduction to Data Studio
    • Managing Database Connections
    • Coding Stored Procedures
    • Deploying Stored Procedures
    • Importing Existing Stored Procedures
  • IV. Error Handling in SQL PL
    • Capturing SQLCODE and SQLSTATE
    • Unhandled Exception Behavior
    • Coding Exception Handlers
    • SIGNAL & RESIGNAL Commands
  • V. Global Temporary Tables
    • Created Global Temporary Tables
    • Declared Global Temporary Tables
    • Example of a Stored Procedure Using Declared Global Temporary Table
    • Coding of Global Temporary Tables
  • VI. Unified Debugger in IBM Data Studio
    • Invoking the Debugger
    • The Debug Perspective
    • Using Breakpoints
    • Working with Variables & Values