Skip to Main Content
DB2® for z/OS® Version 8 DBA Certification Guide
book

DB2® for z/OS® Version 8 DBA Certification Guide

by Susan Lawson
October 2004
Intermediate to advanced content levelIntermediate to advanced
688 pages
16h 35m
English
IBM Press
Content preview from DB2® for z/OS® Version 8 DBA Certification Guide

Chapter 10. Using SQL in an Application Program

• Table and view definitions

• Host variables and structures

• SQL execution validation

• Cursors

• Dynamic SQL

Suppose that you are writing an application program to access data in a DB2 database. When it executes an SQL statement, your program needs to communicate with DB2. When DB2 finishes processing an SQL statement, DB2 sends back a return code, which your program should test to examine the results of the operation.

To communicate with DB2, you need to choose one of these methods:

• Static SQL

• Dynamic SQL

• Open Database Connectivity (ODBC)

• Java Database Connectivity (JDBC) application support

Static and dynamic SQL statements can be embedded in application source programs. During the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

DB2® Universal Database for OS/390® Version 7.1 Certification Guide

DB2® Universal Database for OS/390® Version 7.1 Certification Guide

Richard Yevich, Susan Lawson
Security Functions of IBM DB2 10 for z/OS

Security Functions of IBM DB2 10 for z/OS

Paolo Bruni, Marcelo Antonelli, Hyun Baek, Rick Butler, Ernie Mancill
Managing DB2 for z/OS Utilities with DB2 Tools Solution Packs

Managing DB2 for z/OS Utilities with DB2 Tools Solution Packs

Paolo Bruni, Carlos Alberto Gomes da Silva Junior, Craig McKellar, Adilet Sabyrbaev, Tim Willging

Publisher Resources

ISBN: 0131491202Purchase book