Automatic Switching of Operation Log

This function automatically saves the output contents as a backup file when the log records in the File Access Log or the Command Execution Log reaches a certain count. As a result, you can suppress the disk utilization of the operation log so as not to exceed a certain amount, or save the operation log on a log server at regular intervals.

The automatic switching of the operation log can be set in the Operation Log Auto Switch Count (OPLCHANGECOUNT) and the Operation Log Switch Generation Count (OPLGENERATIONCOUNT) in the System Environment Settings.

In outputting the operation log, the original file is renamed to be backed up and an output file is newly created, if the file size exceeds the setting in the Operation Log Auto Switch Count (OPLCHANGECOUNT). The backup file is created in the same library as the output destination of the operation log.

The backup file is saved until a generation count reaches the value specified in the Operation Log Switch Generation Count (OPLGENERATIONCOUNT), while a backup file is overwritten in order from the generation file number 0001, if the value exceeds the setting. The backup file names are indicated as shown below. The output destination library of the backup files is the same as that of the operation logs.

File Access Log

Fnnnn

Command Execution Log

Cnnnn

nnnn is a generation file number (four digits, ranging from 0001 to 9999).

Figure 2.45 Automatic Switching of Operation Log

1) Size check

Check the file size before outputting the operation log. Output the operation log as it is and end the processing, when the file size does not exceed the setting in the Operation Log Auto Switch Size (OPLCHANGECOUNT).

2) Switch

Rename and back up the operation log file, when the file size exceeds the setting in the Operation Log Auto Switch Size (OPLCHANGECOUNT).

3) Outputting Operation Log

Create fresh operation log file, and output the operation log.

4) Exceeding Generation Count

When the number of backup files exceeds the setting in the Operation Log Switch Generation Count (OPLGENERATIONCOUNT), a backup file is overwritten in order from the generation file number 0001.