Editing a Database File 

Use

You delete part of the content of database files or complete database files.

This command is only permissible for certain database files, such as log files. If you use the command on a file for which it is not permissible, you will receive the error
-24996 ERR_PARAM - wrong parameters.

You specify the operation that is to be performed with the parameter OP.

Prerequisites

You have the DBM operator authorization DBFileRead.

Syntax

file_operation <file_id> OP=DELETE [DATE=<yyyymmddhhmmss>] | OP=SHRINK DATE=<yyyymmddhhmmss>|LINE=<n>

<file_id>

Database file(s)

OP=DELETE

The file(s) is/are deleted.

You can specify that all files that have not been changed since the specified date, DATE=<yyyymmddhhmmss>, are to be deleted.

OP=SHRINK

Part of the content of the file are deleted.

If you additionally specify the parameter DATE=<yyyymmddhhmmss>, all lines that were written before the specified date are deleted.

If, instead, you specify the paramtere LINE=<n>, the contents of the file are reduced to <n> lines. The <n> lines that were written most recently are retained.

Reply

The system outputs an OK message.

In the event of errors, see Reply Format.