Every database includes one control file. The control file performs the following functions:
The control file specification describes the attributes of the control file. The specification is optional. If no specification appears, the following attribute is assigned to the control file: KIND = DISK.
The following diagrams illustrate the syntax for the control file specification:
<control file specification>
──/1\ ── CONTROL FILE ─┬──────────────┬─ ( <control file attributes> ) ────┤ └─ ATTRIBUTES ─┘
<control file attributes>
┌◄────────────────── , ─────────────────────┐ ──┴─┬─/1\───<disk/pack>─────────────────────┬─┴─────────────────────────┤ ├─/1\─┬─<usercode specification>─────┬──┤ │ ├─<doc admin specification> ───┤ │ │ └─<data path specification>────┘ │ ├─/1\─── SECURITYGUARD = <file title> ──┤ ├─/1\ ─ VSS3OPTIMIZE ──┬────────────────┤ │ └─ = ─┬─ FALSE───┤ │ └─ TRUE ───┤ └───────────────────────────────────────┘
<disk/pack>
┌◄──────── , ─────────┐ ──┴─┬─/1\─<disk kind>─┬─┴──────────────────────────────────────────────┤ └─/1\─<disk name>─┘
<disk kind>
──┬──────────┬─┬─ DISK ─────┬──────────────────────────────────────────┤ └─ KIND = ─┘ ├─ PACK ─────┤ └─ DISKPACK ─┘
<disk name>
──┬─ PACK ───────┬─ = ──<family name>──────────────────────────────────┤ ├─ DISKPACK ───┤ ├─ PACKNAME ───┤ └─ FAMILYNAME ─┘
<usercode specification>
── USERCODE = ─┬─<usercode>─┬──────────────────────────────────────────┤ └─ * ────────┘
<doc admin specification>
── DOCADMIN = ─── <usercode> ────────────────────────────────┤
<data path specification>
────DBPATH= ───────<path name> ──┬───────────────────────┬──────┤ └ RUNTIMEUC = <usercode>┘
The following table describes the control file attributes:
Example
The following example illustrates valid DASDL syntax for the control file specification:
CONTROL FILE ( PACK = DBPACK DBPATH = *DIR/MEGAMART/SALES RUNTIMEUC = UC1 ); D DATA SET ( A ALPHA(5); N NUMBER(S5,2); );