EncartaLabs

DB2 for z/OS - Application Programming

The DB2 for z/OS Application Programming - Essentials training course enables attendees to acquire the skills necessary to produce application programs that manipulate DB2 databases. Emphasis is on embedding Structured Query Language (SQL) statements and preparing programs for execution.

In Advanced Programming for DB2 z/OS training course, attendees will learn to code and prepare high performing concurrent, static and dynamic programs supporting a local, remote, or distributed DB2 environment. An array of topics are taught which facilitates the coding and the maintenance of programs to enable them to write multi-purpose flexible programs that process large objects, use stored procedures, scroll through result sets, interact with the web, improve the usability of an application, use tools verses writing an application, and debug an application using the IBM Debug Tool.

By attending DB2 for z/OS Application Programming - Essentials workshop, attendees will learn to:

  • Incorporate static SQL statements in an application program
  • Prepare the program for execution
  • Validate execution results are correct
  • Produce code to support multiple rows being returned from the database manager using cursors
  • Identify considerations regarding units of work, concurrency, and restart of programs
  • Identify differences between static and dynamic SQL
  • Provide test data for applications
  • Discuss program and DB2 options relative to performance of static SQL

By attending Advanced Programming for DB2 z/OS workshop, attendees will learn to:

  • Develop high performing database applications that align with the organizations application growth plan and maintenance strategy
  • Process SQL statements using the DB2 Pre-compiler or DB2 Coprocessor
  • Code, prepare and run dynamic SQL programs
  • Code applications that coordinate updates across multiple servers
  • Debug applications using the DEBUG tool for z/OS
  • Describe some components and architectural characteristics of Web applications and the role that DB2 plays in the Web application environment
  • Describe how your program can interact with the Web
  • Manipulate large objects
  • Facilitate the exchange of large objects between DB2 and local data sets
  • Develop applications that minimize locks on resources to support concurrent programs
  • Use scrollable cursors efficiently
  • Use stored procedures
  • Consider using tools as an alternative to writing a program
  • Write applications that do not hinder other applications

Experience with one of the supported programming languages, COBOL or PL/I for z/OS and SQL.

This course is for Application Programmers who need to write embedded SQL COBOL or PL/I programs in either a DB2 or DB2 for z/OS environment and C, C++ programmer.

COURSE AGENDA

DB2 for z/OS Application Programming - Essentials
(Duration : 3 Days)

1

DB2 Concepts

  • Identify DB2 family products
  • Explain DB2 workstation component functions
  • Identify DB2 objects
  • Identify the key differences between static SQL and other application alternatives for accessing DB2 data
2

Program Structure I

  • Embed INSERT, UPDATE, DELETE and single-row SELECT statements in application programs
  • Effectively communicate with DB2 when processing NULL values and determining success of statement execution
  • Demonstrate use of DB2 coding aids
  • Code CONNECT statements within an application program
  • Identify connection types and impacts on a unit of work
  • Program for the Call Attach Facility (CAF)
3

Program Preparation

  • Identify the additional steps necessary to prepare a program that contains embedded SQL for execution
  • Describe the functions of the DB2 PRECOMPILE and BIND processes
  • Describe factors relevant to the BIND process, including RUNSTATS positioning, package status, parameters, and authorization requirements
4

Program Structure II

  • Use DECLARE, OPEN, FETCH, and CLOSE CURSOR statements to handle select criteria that may return multiple rows in application programs
  • Issue positioned UPDATE and DELETE statements
  • Identify how scrollable cursors can be used
5

Recovery and Locking Concepts

  • Define a unit of recovery
  • Identify the basic locking strategies used by DB2
6

Dynamic SQL Introduction

  • Describe the difference between static and dynamic SQL
  • List the types of dynamic statements
  • Code dynamic SQL in a program
7

Managing Test Data

  • Identify methods to insert data into a table
  • Use the LOAD or IMPORT utility
  • Identify the purpose of the RUNSTATS utility
  • Identify the purpose of the REORG utility
8

Performance Considerations

  • Use programming techniques that enhance DB2 application performance by following general guidelines, using indexable predicates, and avoiding unnecessary sorts
  • Identify the access paths available to DB2
  • List common causes of deadlocks and avoid such causes when possible
  • Use the EXPLAIN tools as aids to develop applications that emphasize performance
DB2 for z/OS Application Programming - Advanced
(Duration : 3 Days)

1

Application Architecture

2

Program Preparation

3

Dynamic SQL

4

Distributed Data Access

5

DEBUG Tool for z/OS

6

DB2 and the Web

7

Large Objects

8

Locking

9

Scrollable Cursors

10

Using Stored Procedures

11

Tools versus Applications

12

Performance

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 4,000 Modules on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting http://encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top