This document contains information about DB2 Universal Database for z/OS Application Programming and SQL Guide Version 8.
This is the Application Programming and SQL Guide for IBM DB2 Universal Database for z/OS, Version 8, identified by product number 5625-DB2. The first edition is dated March 2004. It is organized in two parts: using SQL queries, and coding SQL in your host application program.
Part 1 covers retrieving data with SELECT, working with tables and modifying data, joining data from more than one table, using subqueries, and executing SQL from a terminal using SPUFI. Part 2 covers the basics of coding SQL in an application program, cursors, generating declarations with DCLGEN, embedding SQL statements in assembler, C and C++, COBOL, Fortran, PL/I and REXX applications, and using constraints to maintain data integrity.
| Product number | 5625-DB2 |
|---|---|
| Version | Version 8 |
| Languages supported by DCLGEN | C, COBOL, and PL/I |
| Decimal precision options | 15-digit and 31-digit precision |
You can execute SQL from your terminal using SPUFI, by allocating an input data set, entering SQL statements, and processing them.
Use DCLGEN to generate table declarations and host-variable structures, then include the data declarations in your program.
The book covers embedding SQL statements in assembler, C or C++, COBOL, Fortran, PL/I and REXX applications.
It describes inner join, full outer join, left outer join and right outer join, plus SQL rules for statements containing joins.