DB01 - DB2 SQL Workshop and COBOL / PL1 Programming - 5 Days

Course Description

This course provides the applications programmer with an in-depth knowledge of the DB2 development process. It is aimed at programmers who need to code or support DB2 application programs written in COBOL or PL1. It is essentially a combination of our SQL Workshop (DB08) and DB2 for COBOL/PL1 Developers (DB03) courses.


The delegate should be familiar with the z/OS host environment, together with a working knowledge of either COBOL or PL/I program development using TSO / ISPF.


The aim of this course is to provide the programmer, unfamiliar with DB2, with the necessary skills required to define, access and manipulate DB2 data, either via an application program or using SPUFI.

On completion of this course the student will be able to:

  • set up a DB2 test environment, using correctly defined tables, views, indexes, synonyms and aliases
  • use both permanent and temporary tables
  • use the DB2I toolset, including SPUFI
  • code SQL statements to read and manipulate DB2 data
  • develop, prepare and execute DB2 programs
  • bind packages and plans
  • use non-scrollable and scrollable cursors
  • use multi-row INSERT and FETCH processing
  • describe the locking process used by DB2
  • define and use Referential Integrity
  • use Identity Columns and Sequences
  • produce EXPLAIN output using a PLAN_TABLE
  • use the LOAD utility to populate tables


Development will be performed using:

  • IBM Mainframe
  • DB2 for z/OS Versions 10, 11 or 12s


For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.

Course Details

The Relational Model
Data Representation
The DB2 Environment
The DB2 Table
Accessing The Data
Interfaces to DB2
SQL Structure
Embedded SQL
DB2 Data Relationships
Access Path Selection
DB2 Table Structure
DB2 Data Types
DB2 Catalog
DB2 Interactive
Database Design / Data Analysis
Overview Of Normalisation
First Normal Form
Order Form Example
Second Normal Form
Third Normal Form
Check 3nf

The Structure Of DB2 Objects
Definition Of DB2 Objects - DDL
Database Definition
Tablespace / Page Organisation
Page Sizes
Tablespace Layout
Types Of Tablespace
Tablespace Definition
Table Definition
Table Names
Copying Table Definitions
Rename Table
Data Partitioning
DB2 Column Types
Null Values
User Defined Default Values
Global Temporary Tables
Declared Temporary Tables
Declared Temporary Table Considerations
Declared Temporary Tables - Comparisons
DB2 Views
Read Only Views
Views - With Check Option
Creating A View Of Two Tables
DB2 Synonym
DB2 Alias
The Alter Statements
DB2 Indexes
Index Organisation - The B Tree Index
Index Clustering
Non-Unique Indexes
Index Definition
Partitioning Indexes
Index Design Considerations
The Drop Statement

DB2I Options
SPUFI - SQL Processor Using File Input
Running Queries
SPUFI Defaults
SPUFI - Setting Autocommit to NO
DB2 Commands
DB2 Utilities
The DB2I Defaults Panel

Utility Overview
Running Utilities
The LOAD Utility
The Load Utility Syntax
Online Load Resume
Online Load Considerations

Course Format

The course contains many practical exercises to ensure familiarity with the product. Initially students create Tables and Indexes, and then proceed to develop COBOL or PL/I programs accessing the data held on the DB2 Tables. On completion of this course students will be ready to start the development of application programs accessing DB2 data.

The comprehensive Student Guide supplied is fully indexed serving as a useful reference tool long after the course has finished. Delegates will also be able to access a free help-line with technical questions relating to topics covered on the course.

Course Enquiry