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

This document contains information about DB2 Universal Database for z/OS Application Programming and SQL Guide Version 8.


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
1141
File format
PDF
File size
10.9 MB
Published
01 December, 2023
Updated
01 December, 2023
MD5 checksum
8819A10F5FF0EA04479A59649ADA2121

About this manual

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.

What's inside

  • Retrieving data
  • Working with tables and modifying data
  • Joining data from more than one table
  • Using subqueries
  • Executing SQL from your terminal using SPUFI
  • 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 number5625-DB2
VersionVersion 8
Languages supported by DCLGENC, COBOL, and PL/I
Decimal precision options15-digit and 31-digit precision

Frequently asked questions

How do I execute SQL statements from my terminal?

You can execute SQL from your terminal using SPUFI, by allocating an input data set, entering SQL statements, and processing them.

How can I generate declarations for my tables?

Use DCLGEN to generate table declarations and host-variable structures, then include the data declarations in your program.

In which host languages can I embed SQL statements?

The book covers embedding SQL statements in assembler, C or C++, COBOL, Fortran, PL/I and REXX applications.

What kinds of joins does the guide describe?

It describes inner join, full outer join, left outer join and right outer join, plus SQL rules for statements containing joins.

Download PDF (10.9 MB)

More IBM Manuals


View all IBM manuals →