IBM DB2 Universal Database for z/OS Version 8 Application Programming and SQL Guide

The DB2 Universal Database for z/OS Application Programming and SQL Guide provides information about how to use the application programming interfaces (APIs) and the SQL language of DB2 UDB for z/OS.


IBM DB2 Universal Database for z/OS Version 8 Application Programming and SQL Guide - cover page
Brand
IBM
Category
Other software
Document type
Programming Manual
Language
English
Pages
1282
File format
PDF
File size
13.7 MB
Published
03 December, 2023
Updated
03 December, 2023
MD5 checksum
29BB3595360C3EC359ECA0939FA3B8B4

About this manual

This IBM book is the Application Programming and SQL Guide for DB2 Universal Database for z/OS, Version 8, product number 5625-DB2 (document SC18-7415-05, sixth edition, February 2008). Part 1 covers using SQL queries: retrieving data with SELECT, creating and dropping tables, views and temporary tables, inserting, updating and deleting rows, joining data from more than one table, using subqueries, and running SQL from a workstation with SPUFI.

Part 2 covers coding SQL in host application programs: the basics of embedding SQL, using cursors to retrieve sets of rows, generating table declarations with DCLGEN, and embedding SQL statements in assembler, C, C++, COBOL, Fortran, PL/I and REXX applications. Later chapters cover check and referential constraints for data integrity and DB2-generated key values such as ROWID columns, identity columns and sequence objects.

What's inside

  • Retrieving data
  • Working with tables and modifying data
  • Joining data from more than one table
  • Using subqueries
  • Using SPUFI to execute SQL from your workstation
  • Basics of coding SQL in an application program
  • Using a cursor to retrieve a set of rows
  • Generating declarations for your tables using DCLGEN
  • Embedding SQL statements in host languages
  • Using constraints to maintain data integrity

Specifications

Product versionVersion 8
Product number5625-DB2
Host languages for embedded SQLassembler, C, C++, COBOL, Fortran, PL/I, REXX
DCLGEN supported languagesC, COBOL, and PL/I
Decimal precision15-digit and 31-digit

Frequently asked questions

Which version of DB2 UDB for z/OS does this book apply to?

It applies to Version 8 of IBM DB2 Universal Database for z/OS, product number 5625-DB2.

How can I execute SQL from my workstation?

The book has a chapter on using SPUFI to execute SQL from your workstation, including allocating an input data set and browsing the output.

Which host languages does DCLGEN support?

DCLGEN supports C, COBOL, and PL/I, and the generated data declarations can be included in your program.

How do I retrieve a set of rows in an application program?

By using a cursor: declare the cursor, open it, specify what to do at end-of-data, execute SQL statements, and close it.

Download PDF (13.7 MB)

More IBM Manuals


View all IBM manuals →