|
The commands in the Data menu allow you to import, export, and copy records in data files. You can also recover data after a system failure with the Roll Forward feature. See Roll Forward Command for a discussion of Roll Forward.
When you save data, records in the ASCII file have the following format. You can use an ASCII text editor to create files that you can load, as long as they adhere to these specifications. Note that most text editors do not support editing binary data.
Figure 13-13 shows the correct format for records in the input ASCII file. For this example, the data file has a defined record length of 40 bytes.

You can perform the following data tasks with the Maintenance utility:
You can use the Maintenance utility to import records from an ASCII file to a standard data file. This operation does not perform any conversions on the data. You can create an import file using a text editor or the Maintenance utility (see Exporting Records to an ASCII File ).
To import ASCII data

The ASCII file you specify must adhere to the specifications explained in Importing Records From an ASCII File . The record length of the standard data file you specify must be compatible with the records in the ASCII file.
While importing data, the Maintenance utility shows the number of records being imported, the percentage of records imported, and a status message. You can continue working in the Maintenance utility (for example, you can open another Load dialog box).
You can use the Maintenance utility to export records from a data file to an ASCII file.
To export ASCII records

|
From MicroKernel File
|
Specifies the name of the existing MicroKernel-compatible file you want to save.
|
|
To Sequential File
|
Specifies the name of the sequential file to create.
|
|
Use An Index
|
Uses a specified index when sorting the records for export. By default, the Maintenance utility does not use an index, meaning that records are exported according to their physical position in the data file.
|
|
Internal Index #:
Uses the specified key number. Click Refresh Index List to update the available indexes if you change file in the From MicroKernel File box. |
|
|
External Index File:
Uses the specified external index. (To create an external index, refer to Creating Indexes .) |
|
|
Direction
|
Forward: This is the default setting and indicates the utility recovers the file from the beginning.
Backward: This option recovers data from the end of the file. Forward and Backward: This option reads the file forward until it fails. Then it starts at the end of the file and reads the file backward until it reaches the record that failed previously or encounters another failure. Backward and Forward: Indicates the utility reads the file backward until it fails. Then it starts at the beginning of the file and reads the file forward until it reaches the record that failed previously or encounters another failure. |
You can use the Maintenance utility to copy data from one MicroKernel data file to another. The record lengths for both data files you specify must be the same.
To copy records between MicroKernel data files

See the Logging, Backup, and Restore .
|
Chapter contents
Prev topic: Indexes
|