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 />

HEX xdata<br />

specifies the hexadecimal data to search for. The data may be specified as any<br />

number of strings of hexadecimal digits. If necessary, each string will be padded<br />

on the left with a single leading zero (0) to generate a string of an even number<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 />

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 255 bytes.<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 />

locate cpreal 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 start 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 />

locate cpreal 0 1000 decr c data 123456<br />

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

7. <strong>CP</strong> skips pages that contain <strong>CP</strong> directory data.<br />

8. 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 />

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

amount of <strong>CP</strong>U cycles <strong>and</strong> therefore can impact overall system 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 />

LOCATE (Storage)<br />

The following are examples of responses to the LOCATE <strong>CP</strong>REAL comm<strong>and</strong>:<br />

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

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

Saved successfully!

Ooh no, something went wrong!