When both RSLOG01 and RSLOG02 are specified
-
Logs are written to RSLOG01. If the log dataset is reused, logs are added to the end of the previous log output.
-
If RSLOG01 is full, logs are written to RSLOG02.
-
If RSLOG02 is also full, logs are written to RSLOG01. In this case, the existing logs in RSLOG01 are overwritten.
-
Steps 2 and 3 are repeated.
If a log dataset is full and the log output destination is switched, the KTG291I message (the log dataset is full) and the KTG292I message (the log dataset was switched) are output to the console. At this time, the KTG291I message indicates the name of the log dataset that became full. The KTG292I message indicates the job name and the DD names of log datasets before and after switching (RSLOG01 or RSLOG02).
When a log dataset becomes full (the KTG291I and KTG292I messages are output), stop the MAR program, and back up the log dataset indicated in the KTG291I message. However, the log dataset cannot be backed up if the KTG292I message indicates the same log dataset before and after switching. This is because an error might have occurred in either log dataset and the log dataset before switching has been overwritten.
If neither RSLOG01 nor RSLOG02 is specified
The KTG261E message is output and processing continues without acquiring logs.
If either RSLOG01 or RSLOG02 is specified
The KTG261E message is output and logs are output only to the log dataset for which the DD statement is specified. In this case, if the log dataset becomes full, it will be overwritten from the beginning.
If an I/O error occurs in RSLOG01 or RSLOG02
The messages from KTG262E to KTG264E are output, and logs will be output only to the log dataset in which an I/O error has not occurred. If the log dataset becomes full, it will be overwritten from the beginning. If an I/O error occurs in both log datasets, processing continues without acquiring logs.
You cannot view log datasets during execution of a MAR program. Wait until the executing MAR program terminates and then view the log dataset.