DB2 programming samples

You can use programming samples to get started creating application programs that access data on DB2® for z/OS® subsystems.

The information that is collected in this section includes content from the following sources:
  • Content that is adapted from existing IBM® developerWorks® and other articles from around the web.
  • Samples that were previously delivered throughout in the existing DB2 programming information.
  • Examples that were previously supplied with DB2 in the DSN1010.SDSNSAMP library, but only recently included in their entirety in the documentation.
Note: This information contains sample application programs in source language, which illustrate programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. The sample programs are provided "AS IS", without warranty of any kind. IBM shall not be liable for any damages arising out of your use of the sample programs.

Programming interface information

This information is intended to help you to write programs that contain SQL statements. This information documents General-use Programming Interface and Associated Guidance Information provided by DB2 10 for z/OS.