Creating the File

In this example, the average item size is approximately 63 bytes. The address book has roughly 500 entries. Therefore, the file size should be about 31,500 bytes.

Each frame is about 2,000 bytes, so the number of frames used is approximately 16 (31,500/2,000 = 16). Round this up to the next prime number, 17.

When a file is created, the size for the dictionary section must also be specified. Experience shows that files like this use only a few attribute-defining items. A prime number size for the dictionary section of three, seven or 11 is a good estimate.

The file creation command is:

create-file address 3 17

See Also

Sample Database Design and Creation

Deciding on Attributes and Definitions

Creating Attribute-Defining Items

Editing the File-Defining Item

Creating Indexes

Connecting to the Database