27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SET LOGMSG<br />

SET LOGMSG<br />

►►<br />

Set<br />

Authorization<br />

Purpose<br />

LOGmsg<br />

Oper<strong>and</strong>s<br />

Usage Notes<br />

nn<br />

NULL<br />

text<br />

Privilege Class: B<br />

1278 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

*<br />

Use SET LOGMSG to:<br />

v Set the log message line you specify to the text you enter on the comm<strong>and</strong> line.<br />

v Delete a specified line from the log message.<br />

v Delete the entire log message.<br />

The SET LOGMSG setting is temporary <strong>and</strong> disappears with any reset other than a<br />

warm start.<br />

Note: If you enabled the file-based LOGMSG support using the FEATURES<br />

statement in the system configuration file, you cannot use the SET LOGMSG<br />

comm<strong>and</strong> to alter the log message. In this case, you need to edit log<br />

message files on <strong>CP</strong>-accessed minidisks <strong>and</strong> notify <strong>CP</strong> of the changes using<br />

the <strong>CP</strong>ACCESS comm<strong>and</strong>.<br />

nn is the line number in the log message you want changed. The variable nn is a<br />

decimal number between 0 <strong>and</strong> 50.<br />

* text<br />

is the text that you want placed at line nn of the log message. If you want the<br />

line automatically displayed on each user’s console during logon, you must<br />

precede the text with an asterisk (*). The maximum number of bytes per line is<br />

76, which includes blanks <strong>and</strong> the asterisk, if specified. In DBCS, if text is<br />

longer than 76 bytes, <strong>CP</strong> truncates the text to 76 bytes, but the SO/SI pair will<br />

be maintained. You can use mixed DBCS strings as message text. If line nn<br />

already has text, it is replaced. Otherwise, the text is inserted for line nn.<br />

NULL<br />

indicates that the current text for line nn is deleted from the log message. If<br />

NULL is not preceded by a line number, the entire log message is deleted.<br />

1. <strong>CP</strong> only sends the response <strong>and</strong> redisplayed input lines to the terminal, not to<br />

the virtual machine.<br />

2. If you do not specify any oper<strong>and</strong>s after SET LOGMSG, the system prompts<br />

you to enter a line of text. This line of text is inserted into the log message after<br />

the last line that already has text. For example, if the highest line number in the<br />

log message to have text is 37, the new line of text is inserted at line 38. If line<br />

50 already has text defined, you receive an error message <strong>and</strong> the text is not<br />

inserted.<br />

►◄

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!