OverviewThis 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.
PrerequisitesThis intermediate course is for application programmers who need to write embedded SQL programs in COBOL or PL/I (on z/OS).
You should already have experience with one of the supported programming languages, COBOL or PL/I for z/OS. You are also expected to already be able to construct and use SQL statements.
Delegates will learn how 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
- DB2 Concepts
- Program Structure I
- Program Preparation
- Program Structure II
- Recovery and Locking Concepts
- Dynamic SQL Introduction
- Managing Test Data
- Performance Considerations