NetBatch Manual

Commands
NetBatch Manual522460-004
6-194
SWITCHLOG SCHEDULER Command
log-file
is the name of a scheduler log file. The file can be a device, a process, or any type
of unstructured disk file except an EDIT file. If you specify a disk file, these
conditions apply:
If the file exists and is not an EDIT file, the scheduler opens it and appends
events. If the file is an EDIT file, the command fails.
If the file does not exist or if you omit log-file, the scheduler creates a file
(file code 847) named svol.LOGxxx. svol specifies the volume and
subvolume of the previous log file (if that file was a disk file) or, if there was no
such file, the scheduler’s database subvolume. xxx are characters in the
range AAA through ZZZ.
The default LOG xxx sequence is LOGAAA, LOGAAB, … LOGAAZ, LOGABA,
LOGABB, … LOGZZZ, LOGAAA, and so on. If a name in the sequence exists,
the scheduler uses the next available name.
log-file cannot specify a DEFINE.
Considerations
The SWITCHLOG SCHEDULER command is available to NetBatch supervisors
only.
A scheduler-created disk log file adopts these attributes of the previous log if that
log was a disk file: primary and secondary extent sizes, maximum extents, buffer
size, expiration time, RWEP security, owner, and volume and subvolume. The
default extent size of a scheduler-created disk log file is 50 primary extents and
100 secondary extents. The default maximum extents the file can have is 100.
(The scheduler can record up to 154,375 events in a file of this size.)
When a log file is full, the scheduler automatically closes it and opens a new file
with the default name svol.LOG xxx.
You can omit the object keyword SCHEDULER from the SWITCHLOG
SCHEDULER command only when SCHEDULER is the current assumed object.
For more information, see ASSUME SCHEDULER Command
on page 6-73.
Examples
This SWITCHLOG SCHEDULER command closes the current log file and opens
another with the default name LOG xxx:
1} STATUS SCHEDULER
SCHEDULER STATUS
Process : \MELBDEV.$TEST Primary : 0,60 Backup : 1,41
Database: \MELBDEV.$DATA7.TEST
Logfile : \MELBDEV.$NB.LOGS.TESTLOG .
.
2} SWITCHLOG SCHEDULER