Db2 for z/OS: Application Developer Boot Camp


This comprehensive ten-day 'Boot Camp' course provides attendees with an accelerated learning approach to developing applications in a Db2 for z/OS environment. The course is ideal for those coming new to the Db2 for z/OS environment.

The regular, hands-on lab exercises give students the opportunity to try out their newly-gained skills immediately. Throughout the course reference will be made to best practices to ensure that the SQL and application programs will run efficiently and effectively. On successfully completing this boot camp, attendees will have reached the skill level needed to enable them to write, maintan and amend programs for a Db2 for z/OS environment.

This course is available for one-company, on-site presentations and for live presentation over the Internet, via the Virtual Classroom Environment service.

Please note that this course runs over an elapsed time of 12 days.

What you will learn

On successful completion of this course you will be able to:

  • describe the relational concepts and theory, and the advantages of a RDBMS
  • list the components of the Db2 system and their functions, and describe how they are controlled
  • utilise all the functions available with Db2 Interactive (DB2i)
  • describe the internal structure and components of Db2 for z/OS databases
  • use SPUFI to code SQL statements
  • design and assess a logical database model
  • design and implement efficient physical databases from the logical model using relevant options to create and amend storage groups, databases, table spaces, tables, indexes, aliases, synonyms, etc.
  • code SQL SELECT statements including those using techniques such as joins, nested table expressions, subqueries, unions and case expressions
  • code SQL INSERT, UPDATE, DELETE & MERGE statements to modify data
  • embed SQL statements into an application programming language such as COBOL, PL/I or Assembler
  • understand the differences between views, nested table expressions, common table expressions, and temporary tables and select the best option for a specific task
  • understand the use of materialized query tables, clone tables and temporal tables and the additional SQL statements associated with them
  • describe the use of distinct data types, user-defined functions, and OLAP functions within Db2 for z/OS
  • understand how and when triggers may be used
  • understand and control the locking strategy used by Db2 to maintain data integrity
  • understand the DB2 optimizer and the use of EXPLAIN in determining access path, statement efficiency and choosing optimal code
  • plan for application monitoring and tuning
  • use Db2 traces to identify problem areas and identify tuning opportunities.

Who Should Attend

Applications Developers coming new to the Db2 for z/OS environment.

Prerequisites

Experience in using COBOL, PL/I or Assembler in a mainframe application programming role, an ablitiy to use TSO/ISPF and a working knowledge of z/OS JCL.

Duration

10 days

Fee (per attendee)

£4950 (ex VAT)

 

This includes free online 24/7 access to course notes.

 

Hard copy course notes are available on request from rsmshop@rsm.co.uk

at £50.00 plus carriage per set.

Course Code

DBAP

Contents

Day 1:

DBMS Overview

What is a database?; comparison of hierarchical, network & relational database management systems; a brief history of Db2.

Relational Theory & Concepts

Relational theory; relational model; relational algebra; entity, referential and user-defined integrity.

Db2 System & Operations

Db2 address spaces; Db2 attachments; storage pools; logging methodology; basic operations; Db2 commands.

DB2 Interactive (DB2I)

Db2I panels; SPUFI; other functions.

Day 2:

Db2 Data Objects

Db2 objects and the relationships between them; Db2 catalog & directory; interrogating the Db2 catalog.

Db2 Table Design

Data concepts; E-R diagrams; Normalisation; Table creation; Db2 data types and attributes; Constraint & domain management; Temporal tables; System period data versioning; Temporary tables.

Db2 Index Design & Usage

Data access paths; Predicates, index usage and I/O types; Index structure; When to index; Composite keys; Clustering; Index key randomisation; Indexes on expressions; Non-key columns in unique indexes; Creating indexes.

Day 3:

Db2 Physical Database Design & DDL

Pageset structure; Tablespace types and defaults; Db2 object definition; Understanding and choosing options for performance.

Basic SELECT Statements

Selecting all columns; row & column control; multiple conditions; special operators; the escape character; arithmetic in DML; using constants; special registers; concatenation; date and time columns.

SQL Built-in Functions

Column functions; scalar functions; 'group by' and 'having' clauses; User-defined functions overview; Inline and non-inline scalar functions.

Day 4:

Joins & Nested Table Expressions

Joins; correlation names; Cartesian product; inner and outer joins; nested table expressions.

Unions, Intersections,Exceptions & Case Expressions

Union, union all, and case expressions.

Subqueries

Simple subqueries; correlated subqueries; 'IN', 'NOT IN' 'NOT EXISTS'; quantified predicates, effect of nulls on SQL statements.

Day 5:

Table Modification Commands

Insert; inserting multiple rows; update and delete statements; the impact of referential integrity constraints.

Basic Application Programming

Language support; embedded SQL; the declare table statement; the SQLCA; SQLCODE; host language variables; handling variable length columns & nulls; using host structures; commit and rollback.

Day 6:

Cursor Processing

Cursor processing, cursors for update, cursor with hold, scrollable cursors.

Program Preparation

Precompile, bind, program preparation and execution; plans and packages; BIND PLAN; BIND PACKAGE; BIND QUERY.

Day 7:

Db2 Locking & Concurrency

Resource serialisation; Claims and drain; Concurrent applications and utility processing; Lock control; Locking options; Lock compatibility; Bind options; Lock avoidance; Monitoring locking.

Using Views & Temporary Tables

Views; Nested table expressions; Common table expressions; Recursive SQL; View options; Created temporary tables; Declared temporary tables; Table comparisons.

Materialized Query, Clone & Temporal Tables

Materialized Query Tables; maintaining data in MQTs; Using MQTs; Automatic Query Rewrite (AQR); Clone tables; Using clone tables; Exchanging data; System period temporal tables; Application period temporal tables; Using temporal tables; FROM period specification.

Day 8:

Distinct Data Types & User Defined Functions

Distinct data types; Casting data; Sourced user defined function; External user defined function; User defined SQL functions; Table functions; Inline and non-inline scalar functions; Invoking functions; Identifying functions; Function resolution.

Triggers

Triggers; Trigger components; Trigger options; Trigger body statements; BEFORE, AFTER & IINSTEAD OF triggers; Trigger examples; Trigger performance.

Advanced DML options

SELECT FROM INSERT/UPDATE/DELETE; INCLUDE with INSERT & UPDATE; Multi-row processing with INSERT & MERGE; Multi-row condition handling; GET DIAGNOSTICS; Statement information; Condition information; Ranking data; ROW_NUMBER; RANK; DENSE_RANK; Moving sums; Moving averages: Identity columns; Sequences; Changing attributes; Using identity columns & sequences in SQL statements.

Day 9:

The Db2 Optimizer

Input to the Optimizer; Catalog statistics; Filter factors; Filter factor and clustering; Filter factor examples; Influencing the Optimizer; Influencing the Optimizer by manually adjusting statistics, modelling production values & using optimization hints'; Catalog statistics; RUNSTATS options; Statistics columns; RUNSTATS - examples.

Db2 EXPLAIN

EXPLAIN; PLAN_TABLE; PLAN_TABLE additions; DSN_STATEMNT_TABLE; DSN_FUNCTION_TABLE; EXPLAIN: basic access paths, multi-index access, nested queries examples.

Db2 Performance Overview

What is 'performance'?; Performance objectives; Workload categories; Service Level Agreements; Performance factors; System parameters; EDM pool size; Buffer pool sizes; Bufferpool thresholds; Bufferpool development; Database design factors; Application design factors; DB2 traces.

Day 10:

Db2 Traces

Trace types; Trace destination; Accounting trace classes; Audit trace classes; Statistics trace classes; Performance trace classes; Monitor trace classes; Global trace classes; IFCID types; Other trace options; Controlling traces.

Monitoring Application Performance

Monitoring overview; DB2 Performance Expert; DB2PE reports and traces; accounting short report; accounting long report; time distribution reports; times, suspensions & highlights report; SQL activity report; dynamic SQL caching report; other processing activity report; locking activity report; parallelism report; buffer pool and group buffer pool activity reports; statistics long report.

Performance Analysis

EXPLAIN information; DB2PM reports; short accounting reports; long accounting reports; report usage summary; a general approach to problem analysis in Db2 for z/OS.


© RSM Technology 2022