5.10.2 Example 1 (HiRDB/Single Server)

This example creates an list RDAREA in the following HiRDB file system area for list RDAREAs:

Organization of this subsection
(1) Creating the control statement file
(2) Executing the database structure modification utility (pdmod)

(1) Creating the control statement file

Create the control statement file that is to be specified in the database structure modification utility's (pdmod) argument. You can create the control statement file at any location. This example creates a file under the following filename:

Contents of the control statement file

create rdarea LIST01 for list                                 1
   page 4096 characters storage control segment 2 pages
   file name "/listarea01/list01"
       initial 1000 segments;

Explanation:
  1. Definition of the list RDAREAs (LIST01)
    This example specifies the page length and segment size of the RDAREA. It creates a HiRDB file named list01 in the HiRDB file system area. This HiRDB file has 1000 segments.

(2) Executing the database structure modification utility (pdmod)

Example of command entry

pdmod -a /usr/hirdb/pdmod04

Explanation:
-a: Specifies the name of the control statement file that was previously created in (1).