Home About Courses Schedule Services Webinars Contact Search

Db2 for z/OS SQL & Application Programming


Duration: 5.0 days

Method: Instructor led, Hands-on workshops.

Price: $3250.00

Course Code: DB1010

View Related Video


Programmers, application developers and computer analysts who are exposed to, or are required to perform the activities associated with application development and implementation in a Db2 environment.


Db2 SQL and Application Programming is a 5 day course targeting the needs of programmers and developers writing applications that access data stored in the Db2 environment.The presentation is an integrated mixture of lecture and workshop activities that introduce and reinforce the basic techniques and approaches to relational database technology as implemented in Db2. Topics covered include structure and manipulation of Db2 data, operational considerations in both on-line and batch environments; integrity; embedded programming techniques and preparation; and an introduction to performance analysis.The workshop activities follow the classroom material and are designed for both topic reinforcement and practice. Programming topics are supported by workshops in both the on-line and batch environment, this includes precompiling, compiling, linking, and the various options of the Db2 BIND.This course is a combination of DB1000 Db2 SQL for Everyone and DB1001 Db2 for z/OS Embedded SQL Programming.


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

  • Describe the overall purpose of, and the approaches to manipulating data in a database management system.
  • Describe the major objects used by Db2 for data manipulation.
  • Translate and code business problems in Structured Query Language.
  • State the internal approaches utilized by Db2 for accessing data.
  • Describe the major objects used by Db2 for data manipulation.
  • Embed SQL in COBOL programs.
  • Prepare COBOL programs containing embedded SQL statements for execution in the z/OS batch environment.
  • Process multi-row tables with Db2 cursors.
  • State the internal approaches utilized by Db2 for accessing data.


Basic programming skills in the COBOL environment and familiarity with the z/OS environment and TSO/ISPF. Basic knowldege of Db2 is helpful.


  • Structured Query Language (SQL)
  • I. Relational Database Concepts
    • The Relational Model
    • Domains
    • Integrity and Relationships
    • Structured Query Language (SQL)
    • Unknown Values (NULL)
    • Basic Datatypes
  • II. Basic Data Manipulation
    • SELECT Statement
    • Using SELECT
    • Projecting Columns Onto the Result
    • Basic Predicates
    • Expressions in the SELECT Clause
    • Expressions in the WHERE clause
  • III. Intermediate Data Manipulation
    • Compound Conditions
    • Other WHERE Clause Operators
      • LIKE
      • IN
      • BETWEEN
      • IS NULL
    • Using DISTINCT
    • ORDER BY Clause
  • IV. Built-in Functions
    • Working with Datatypes and Casting
    • Functions Involving NULLs
    • CASE Statements
  • V. Aggregation
    • SUM, AVG, MIN, MAX & COUNT Functions
    • Grouping Results with GROUP BY
    • Filtering Groups with HAVING
  • VI. Joins
    • Inner Equi-Join
    • Join Classification
    • Cartesian Products
    • Inner Joins of More than 2 Tables
  • VII. Data Modification
    • INSERT
    • UPDATE
    • DELETE
  • VIII. Complex Joins
    • LEFT / RIGHT / FULL Outer Joins
    • Self-Joins
  • IX. SQL Subqueries
    • Non Correlated Subqueries
    • Correlated Subqueries
    • Scalar Fullselects
  • X. Set Operations
    • Union / Union ALL
    • Intersect / Intersect ALL
    • Except / Except ALL
  • Embedded Application Programming
  • XI. Db2 on the z/OS Platform
    • The Db2 Family
    • The Db2 Environment on z/OS
    • Stored Procedures
    • Databases and Schemas
    • Tablespaces
    • Indexes
    • The Db2 Catalog
    • Structured Query Language
  • XII. Introduction to Embedded SQL
    • Program Preparation Overview
    • SQL Program Development Steps
    • Retrieving Data with SELECT...INTO
    • Indicators in UPDATE and INSERT
    • The SQL Communications Area
    • Error Handling
  • XIII. Program Preparation
    • Program Preparation Steps
    • DCLGEN
    • Program Preparation with Precompiler
    • Program Preparation with Coprocessor
    • The TSO Terminal Monitor Program
    • The DSN RUN Subcommand
    • TSO Batch Attachment
    • Program Execution
    • Multi-Threaded Attach
    • BIND
    • Debugging
    • Generated Code
    • Catalog Tables for Packages and PLANs
  • XIV. Cursors
    • Cursor Processing Overview
    • DECLARE Cursor
    • OPEN Cursor
    • FETCH
    • CLOSE Cursor
    • A Complete Example
    • Positioned UPDATE and DELETE
    • Updating with a Read-Only Cursor
    • Logical Unit of Work Overview
    • Two-Phase Commit Protocol
  • XV. Performance
    • The Db2 Optimizer
    • Tuning SQL
    • Access Path Choices
    • Index Processing
    • Prefetch
    • Predicate Evaluation
    • Coding SQL for Performance