Example 2—Deleting Lines in an Existing Log Message

Assume you have a 12-line system log message and you want to delete the last three lines. To delete lines 10, 11, and 12 of the log message, enter:
set logmsg 10 null
set logmsg 11 null
set logmsg 12 null
In response to this command, CP deletes the lines. When a user logs on or enters the QUERY LOGMSG command, CP displays the log message header and the new nine-line log message.

When you change the system log message, send a message to all logged-on users. The message should say that the log message has changed and that they can enter the QUERY LOGMSG command to display the new one. When a user enters the QUERY LOGMSG command, CP displays the updated log message on the user's display screen. (For information on sending messages, see Sending Messages to z/VM Users.)

Note: If you have a CMS virtual machine, you can create a CMS EXEC file to make it easier to update the system log message. For information on how to create a CMS EXEC file, see the correct z/VM® CMS book.