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.

G-5 0-G5<br />

G5- G5-end<br />

G5 G5<br />

T Error<br />

T- T0-end<br />

T-1000<br />

T0-1000<br />

T1000-<br />

T1000-end<br />

T1000 T1000<br />

PSW Current<br />

3. When displaying a range of addresses or subchannels, the comm<strong>and</strong> oper<strong>and</strong><br />

must be followed by an address, a range, or by a hyphen (-), colon (:), or period<br />

(.). When displaying registers, the comm<strong>and</strong> oper<strong>and</strong> can st<strong>and</strong> alone.<br />

4. If you enter a comm<strong>and</strong> line that contains an oper<strong>and</strong> that is not valid, the<br />

DISPLAY comm<strong>and</strong> terminates when it encounters that oper<strong>and</strong>. Any previous<br />

valid oper<strong>and</strong>s are processed before termination occurs.<br />

5. The DISPLAY comm<strong>and</strong> lets you display storage in the following formats:<br />

v Hexadecimal string/word segments<br />

v EBCDIC or ASCII translation<br />

v Hexadecimal word segments with EBCDIC translation<br />

v Instruction<br />

v Storage key<br />

DISPLAY<br />

Note: The EBCDIC translation is displayed only when the storage location<br />

contains the hexadecimal representation contained in a system<br />

translation table. This table is tailorable by the system programmer via<br />

the system configuration file. The <strong>IBM</strong> supplied table supports<br />

translations for the hexadecimal representation of the digits 0 through 9,<br />

the uppercase <strong>and</strong> lowercase letters A through Z, <strong>and</strong> a number of<br />

special characters. In all other cases, a period (.) is displayed.<br />

If you enter multiple oper<strong>and</strong>s on a single comm<strong>and</strong> line to display<br />

storage <strong>and</strong> do not specify the format that you want the DISPLAY<br />

comm<strong>and</strong> processor to use, the last format type you explicitly enter on<br />

the comm<strong>and</strong> line defines the type of display you receive. That is,<br />

whenever you explicitly enter a display type, you implicitly define the<br />

default for subsequent oper<strong>and</strong>s of the current display function. If you do<br />

not enter any display format type on the comm<strong>and</strong> line, the system<br />

defaults are employed.<br />

For example, the comm<strong>and</strong> display 10 20 T40 80 G12 5 L60-100 displays the<br />

following, respectively:<br />

v Hexadecimal location 10 without EBCDIC translation<br />

v Hexadecimal location 20 without EBCDIC translation<br />

v Hexadecimal location 40 with EBCDIC translation<br />

v Hexadecimal location 80 with EBCDIC translation<br />

v The contents of general register 12<br />

v The contents of general register 5<br />

v Hexadecimal locations 60 through 100 without EBCDIC translation.<br />

6. Use the DISPLAY comm<strong>and</strong> to display the contents of various storage locations,<br />

registers, <strong>and</strong> control words. You can examine this information during program<br />

execution, <strong>and</strong> may be able to determine the cause of program errors.<br />

To do this, you would typically define a TRACE trap, using the TRACE<br />

comm<strong>and</strong>, that will stop program execution at a specified point. Once program<br />

execution suspends, your virtual machine enters the <strong>CP</strong> environment, <strong>and</strong> you<br />

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

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

Saved successfully!

Ooh no, something went wrong!