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).
 (New File). 
		   
		    
			 The New dialog box appears.
The Create New File dialog box appears.
If you do apply a structure file, the details within it are used to populate the File Details section.
 beside 
			 Organization, then select 
			 Indexed.
 beside 
			 Organization, then select 
			 Indexed. 
		   
		 beside 
			 File Format, then select an indexed file format.
 beside 
			 File 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.
A primary key is created, with a default component. A component defines the start position and length of the key within each record.
For example, if the key is going to be the first 3 bytes of the record, specify Offset:0, Length:3.
The primary key is created.
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.
The file is created, then opened in the editor.