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.

Usage Notes<br />

Responses<br />

The user must be authorized to use this oper<strong>and</strong> via the TODENABLE oper<strong>and</strong><br />

of the OPTION Directory Control Statement. Without authorization, the virtual<br />

machine’s TOD clock will not be changed <strong>and</strong> an error message is presented.<br />

FROMUSER userid<br />

the user’s virtual machine TOD clock will be set exactly to the specified user<br />

ID’s TOD clock.<br />

The user must be authorized to use this oper<strong>and</strong> via the TODENABLE oper<strong>and</strong><br />

of the OPTION Directory Control Statement. Without authorization, the virtual<br />

machine’s TOD clock will not be changed <strong>and</strong> an error message is presented.<br />

MSGPROC msgprocid<br />

the virtual TOD clock of the specified message processor user will be set<br />

exactly to the issuer’s virtual TOD clock.<br />

If you have Class G privilege only, the message processor that you specify<br />

must be currently in your I/O configuration. A message processor may be<br />

defined in your I/O configuration by either the DEFINE MSGPROC comm<strong>and</strong> or<br />

the SPECIAL directory statement.<br />

If you have Class A or Class B privilege, the specified message processor user<br />

must have the CF<strong>VM</strong> oper<strong>and</strong> of the OPTION Directory Control Statement.<br />

Regardless of privilege class, the specified message processor user must have<br />

the TODENABLE oper<strong>and</strong> of the OPTION Directory Control Statement.<br />

CAUTION: Setting the TOD clock of the message processor will cause a<br />

RESTART MSGPROC comm<strong>and</strong> to be executed on the specified message<br />

processor. The RESTART MSGPROC comm<strong>and</strong> will cause the message<br />

processor to be re-IPLed, thus causing all structures within the Coupling Facility<br />

to be lost <strong>and</strong> will affect all coupled guests connected to the message<br />

processor. See the RESTART MSGPROC comm<strong>and</strong> for more information.<br />

1. A system reset will occur for the virtual machine whose virtual TOD clock value<br />

has changed. If the virtual TOD clock of a message processor is changed, the<br />

message processor’s virtual machine is restarted.<br />

2. The virtual machine whose TOD clock you want to change may not be in<br />

ESA/XC mode.<br />

3. The virtual TOD clock will be changed for all of the virtual <strong>CP</strong>Us in the affected<br />

user’s base configuration.<br />

4. This comm<strong>and</strong> does not affect the time <strong>and</strong> date information that is returned<br />

from DIAG X'000C', DIAG X'270', REXX DATE(), REXX TIME(), or PIPE<br />

TIMESTAMP functions. The EXEC2 &TIME <strong>and</strong> &DATE functions are affected.<br />

This comm<strong>and</strong> is NOT intended to allow an ordinary CMS user to run their<br />

virtual machine with a date <strong>and</strong> time that is different than the system date <strong>and</strong><br />

time. This comm<strong>and</strong> is to allow guest operating systems running on <strong>VM</strong> to<br />

synchronize their virtual TOD clocks in order to participate in a parallel sysplex<br />

environment.<br />

Response 1:<br />

To modify the date of your virtual machine’s TOD clock, enter the following:<br />

set vtod date 12/31/1999<br />

Storage cleared - system reset.<br />

SET VTOD<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 1427

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

Saved successfully!

Ooh no, something went wrong!