Use this procedure to create an indexed data file. To create a (record) sequential, line sequential, or relative data file, see Create a Non-indexed Data File.
(New File).
The New dialog box appears.
The Create New File dialog box appears.
beside
Organization, then select
Indexed.
beside
Format, then select an indexed file format.
For an indexed file, you must specify a primary key, and may specify one or more alternate keys.
The Key Information dialog box appears.
(Insert Before).
A primary key is created, with a default component. A component defines the start position and length of the key within each record.
Details for the default component, created when the key was added, appears.
For example, if the key is going to be the first 3 bytes of the record, specify Offset:0, Length:3.
(Insert After), select the new component and specify the key values.
(Delete).
The primary key is created.
(Insert Before).
An Alt Key <number> key is created, with a default component.
Details for the default component, created when the key was added, appear.
For example, if the key is going to be the next 3 bytes of the record after the primary key, specify Offset:3, Length:3.
(Insert After), select the new component and specify the key values.
(Delete).
beside
Encoding, then select either
ANSI or
EBCDIC.
The file is created, then opened in the editor.