Is there a way to get a message to go to the SYSLOG when we run out of virtual terminals (TPXL0037) so that we can automate notification of this situation?

Document ID : KB000051352
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

You can use the LOGWRITER exit to accomplish this.

Solution:

TPX 5.2 introduced the LOGWRITER exit.

The Log Writer exit is called after a TPX LOG message has been formatted but before it has been written to the LOG DD. The exit can selectively write the message to the console or tell TPX to discard the message.

By default the exit issues messages to the TPX log. You can write your own WTO macro to have selected messages to go to the console which goes to the SYSLOG. You can then trigger automation based upon these messages.