CA-L-Serv Commands › Routing Command Output › SWITCHLOG Command
SWITCHLOG Command
The SWITCHLOG command lets you switch to a new log file. By doing this, you tell CA‑L‑Serv to start recording information in the next file associated with the log.
Syntax
SWITCHLog name
|
Operand
|
Explanation
|
|
name
|
Identifies the log.
|
Note:
- Issue the SWITCHLOG command from a console.
- Use this command only if you provided DD names or dsnames for the log. Do not use it when the log is defined as a SYSOUT data set.
- Use this command only when multiple DD names are defined for a single log.
- The order in which you defined log files (on the ADDLOG command) determines which file CA‑L‑Serv selects.
- When CA‑L‑Serv is using the last log file and you issue a SWITCHLOG command, CA‑L‑Serv starts using the first log file and overwrites its contents.
Example
To switch to the next file for log LOG1, issue this command:
SWITCHLOG LOG1