Call : (+91) 99 8080 3767
Mail :

DB2 for z/OS - Application Programming

The DB2 for z/OS Application Programming - Essentials training course enables you 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, you 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 you 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, delegates 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, delegates 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 Advanced Programming for DB2 z/OS class is intended 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.


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


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

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)

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

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

Recovery and Locking Concepts

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

Dynamic SQL Introduction

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

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

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)


Application Architecture


Program Preparation


Dynamic SQL


Distributed Data Access


DEBUG Tool for z/OS


DB2 and the Web


Large Objects




Scrollable Cursors


Using Stored Procedures


Tools versus Applications



Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses 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

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