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.

LOCATE SYMBOL<br />

►►<br />

LOCate<br />

Authorization<br />

Purpose<br />

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

Usage Notes<br />

Responses<br />

SYMBOL<br />

symbol<br />

symbol<br />

*<br />

Privilege Class: C, E<br />

Use LOCATE SYMBOL to display the address of an external symbol.<br />

symbol<br />

is the name of an external symbol. LOCATE symbol tells <strong>CP</strong> to locate the<br />

address of the external symbol. If you specify the SYMBOL keyword, <strong>CP</strong><br />

supports pattern matching as described below in Usage Note 1. An asterisk (*)<br />

with the SYMBOL keyword tells <strong>CP</strong> to list every <strong>CP</strong> external symbol <strong>and</strong> its<br />

location.<br />

1. Pattern matching generally follows the rules used by the CMS LISTFILE<br />

comm<strong>and</strong>. Use an asterisk (*) to match any number of characters; use a<br />

percent symbol (%) to match any single character.<br />

2. There are several LOCATE comm<strong>and</strong>s (LOCATE RDEV, LOCATE SYMBOL,<br />

LOCATE <strong>VM</strong>DBK) that treat the qualifying keyword on locate as optional. The<br />

use of a keyword on this LOCATE comm<strong>and</strong> is recommended to avoid<br />

undesired results.<br />

Response 1:<br />

If you use LOCATE SYMBOL <strong>and</strong> you do not specify the SYMBOL keyword, you<br />

may see the following:<br />

locate hcpabc<br />

10:40:52 H<strong>CP</strong>ABC = 00868000 Resident<br />

Ready;<br />

This response indicates H<strong>CP</strong>ABC is at the hexadecimal address 00868000.<br />

Response 2:<br />

If you use LOCATE SYMBOL with the SYMBOL keyword to find the address of the<br />

same external symbol, you may get the following response:<br />

locate symbol hcpabc<br />

16:38:48 H<strong>CP</strong>ABC = 00868000 Resident 000858 Bytes<br />

Ready;<br />

LOCATE SYMBOL<br />

The second number in the response is the length of the CSECT, <strong>and</strong> is shown if the<br />

entry in the map contains a nonzero length for the external label:<br />

►◄<br />

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

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

Saved successfully!

Ooh no, something went wrong!