Previous Topic: Hardcopy Activity Log

Next Topic: Wrap the Hardcopy Log Data Sets


Swap the Hardcopy Log

Swapping the current log frees the log for immediate printing. Swapping the log is possible only when another unused log remains to which logging can continue. You can specify up to nine logs. Logs do not need to be consecutive.

To swap the log, enter the LOGSWAP command.

When a log is swapped, the log status, the requesting user ID, and the reason for the swap are recorded. You can display these details with the SHOW LOGS command.

Each of the logs is identified in the JCL member by the LOGn ddname. n is in the range one to nine.

Example: Log Name

This example defines the LOG4 ddname:

//LOG4 DD SYSOUT=A,FREE=CLOSE

Mixing of device types is valid. Inclusion of FREE=CLOSE prints the log when it is released by the LOGSWAP command.