Previous Topic: Space ManagementNext Topic: Database Keys


Database Pages

Size of Database

A database can have from 2 to 1,073,741,822 pages. Each area contains pages of equal size. Each page can contain up to 32,756 bytes of data. For details, see 35.3, “Database Keys". Database pages are mapped to BDAM, or DAM blocks, or VSAM control intervals (for details, see Chapter 17, “Allocating and Formatting Files"). Each database page is identified by a unique page number and data transfers are accomplished one page at a time.

Page Format

All database pages, regardless of size, have a header and footer with the same general format as shown in the following diagram. A database page always has a header at the beginning of the page and a footer at the end; free space is in the middle.

Header

The header occupies the first 16 bytes of each page and is formatted as follows:

Footer

The footer occupies the last 16 bytes of each page and is formatted as follows:

Note: Numeric fields maintained by CA IDMS are in binary format, although this manual represents them as decimal numbers.

To simplify the illustrations, the page size (800 bytes) in the figures of this manual is unusually small.

Database Page Layout

Except for the header and the footer, pages are filled with the following entries:

Record occurrences are added from the top down; line indexes from the bottom up. Free space is always in the middle.