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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Usage Notes<br />

Responses<br />

of hexadecimal digits. <strong>CP</strong> ignores blanks between the hexadecimal strings as it<br />

converts the strings for comparison. The length of the data to search for must<br />

be less than 254 hexadecimal digits.<br />

If you specify the HEX oper<strong>and</strong>, the CASE oper<strong>and</strong> is ignored.<br />

PROMPT<br />

tells <strong>CP</strong> to prompt you to enter the data to be searched for. The length of the<br />

data to search for must be less than 254bytes.<br />

1. <strong>CP</strong> only searches addresses for pages assigned. <strong>CP</strong> skips a page for an<br />

address not assigned (for example, an unreferenced page). If <strong>CP</strong> skips a page<br />

for any reason, the next comparison is in the next acceptable page at the<br />

address that would have been reached had the page or pages not been skipped<br />

<strong>and</strong> had all comparisons failed.<br />

2. If you specify the search area as lo hi or lo-hi, <strong>CP</strong> searches <strong>and</strong> compares the<br />

byte at address hi. For example,<br />

locatevm 0 1 hex 00<br />

causes <strong>CP</strong> to compare the two bytes (address 0 <strong>and</strong> address 1) to the specified<br />

data (00).<br />

3. Specifying the search area as lo hi or lo-hi is the same as specifying lo.len if len<br />

= hi – lo + 1.<br />

4. If <strong>CP</strong> finds a match, the address of the next comparison attempt is the address<br />

of the match plus the increment amount (or minus the decrement amount).<br />

5. If you specify DECREMENT, <strong>CP</strong> displays the addresses of matches with the<br />

highest address first.<br />

6. Whether you specify INCREMENT or DECREMENT, the set of addresses<br />

eligible for the search are the same. The difference is that INCREMENT causes<br />

the search to start from the lo address <strong>and</strong> progress upward, while<br />

DECREMENT causes the search to begin at the hi address <strong>and</strong> progress<br />

downward ending at the lo address. For example, in the following comm<strong>and</strong>,<br />

locatevm 0 1000 decr c data 123456<br />

the first comparison address is X'FF0'.<br />

7. If you specify PROMPT, you see the following:<br />

Enter data now. To abort the comm<strong>and</strong>,<br />

press ENTER with no data or press PA1.<br />

8. If a large search range is specified, the LOCATE<strong>VM</strong> comm<strong>and</strong> will take a large<br />

amount of <strong>CP</strong>U cycles <strong>and</strong> therefore can impact the overall system<br />

performance.<br />

Addresses in responses can be up to sixteen hexadecimal digits, separated by an<br />

underscore if SET UNDERSCORE ON has been specified.<br />

Response 1:<br />

If you enter a LOCATE<strong>VM</strong> comm<strong>and</strong>, you might see something like this:<br />

locatevm 1000-2000 hex 0<br />

The data is located at 00001000.<br />

Ready;<br />

LOCATE<strong>VM</strong><br />

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

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

Saved successfully!

Ooh no, something went wrong!