What Formatting Means
Formatting means initializing database or disk journal files into database pages or blocks according to information provided by the DMCL.
Important! NEVER format native VSAM files
Formatting Database Files
When you issue a FORMAT command against a database file, CA IDMS/DB:
Formatting Journal Files
When you issue a FORMAT command against a disk journal file, CA IDMS/DB formats the file into blocks according to the journal file specification in the DMCL module. The disk journal file contains:
Before You Begin
Before you format a file, the DMCL that contains the file definition must be available. The DMCL provides the information CA IDMS/DB needs to format the file into database pages or journal file blocks.
Formatting Options
You can specify four options on the FORMAT utility statement. The following table identifies when to use these options:
|
Action |
FORMAT Option |
|---|---|
|
Format newly-created database file(s) |
FILE or SEGMENT |
|
Re-format non-empty database file(s) 1 |
AREA or SEGMENT* |
|
Format a disk journal file |
JOURNAL |
Note: VSAM database files can only be formatted using the AREA option.
Example
The following example instructs CA IDMS/DB to format all the database files contained in segment EMPSEG:
format segment empseg;
|
Copyright © 2014 CA.
All rights reserved.
|
|