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

RESolve<br />

tells <strong>CP</strong> to resolve the entry points associated with this exit number when the<br />

association is first established. Any existing associated entry points are resolved<br />

immediately.<br />

PARM parameter<br />

is a list of one or more parameters to be supplied to the exit. Five kinds of<br />

tokens can be used to define a parameter:<br />

1. Addresses: strings up to eight characters long, consisting of the<br />

hexadecimal digits 0 through 9 <strong>and</strong> A through F.<br />

2. General Registers: strings beginning with G or R, followed by a decimal<br />

number between 0 <strong>and</strong> 15 or a hexadecimal digit, designating the contents<br />

of a general register.<br />

3. Indirection: a percent sign (%), which causes the contents of an address or<br />

the contents of an address in a register to be used instead of the address or<br />

register contents itself.<br />

4. Arithmetic: a plus sign (+) or minus sign (−).<br />

5. Displacement: strings of up to four hexadecimal digits.<br />

Each parameter string specifies how to combine these tokens to generate a<br />

parameter value to be passed to an exit routine. The following is a Backus-Naur<br />

definition of the syntax of a parameter:<br />

::= | <br />

::= | 0...FFFFFFFF | %<br />

::= | % | <br />

::= + | − | + | −<br />

::= G | R<br />

::= 0...15 | 0...9, A...F<br />

::= 0...7FFF<br />

1. To define a new dynamic exit point, use the DEFINE EXIT comm<strong>and</strong> (page<br />

165).<br />

2. To load the exit processing code into <strong>CP</strong>’s system execution space, use the<br />

<strong>CP</strong>XLOAD comm<strong>and</strong> (page 101).<br />

3. To activate a new exit point, use the ENABLE EXITS comm<strong>and</strong> (page 431).<br />

4. To display information about an exit point (status, entry point name, <strong>and</strong><br />

parameters), use the QUERY EXITS comm<strong>and</strong> (page 791).<br />

5. To deactivate an exit point, use the DISABLE EXITS comm<strong>and</strong> (page 269).<br />

6. To remove the exit processing code from <strong>CP</strong>’s system execution space, use<br />

the <strong>CP</strong>XUNLOAD comm<strong>and</strong> (page 107).<br />

7. Exit numbers are allocated as follows:<br />

v X'0000' to X'7FFF' are reserved for <strong>IBM</strong> use.<br />

v X'8000' to X'EFFF' are reserved for vendor <strong>and</strong> general use.<br />

v X'F000' to X'FFFF' are reserved for private customer use.<br />

MODIFY EXIT<br />

8. The RESOLVE option ensures that the entry names associated with an exit<br />

point are defined.<br />

9. Each exit is passed a parameter list that begins with three st<strong>and</strong>ard<br />

parameters, as described in the z/<strong>VM</strong>: <strong>CP</strong> Exit Customization book. Additional<br />

parameters, specified by the PARM oper<strong>and</strong>, are optional <strong>and</strong> follow the first<br />

three in the order in which they are specified.<br />

10. Errors (for example, addressing exceptions) during evaluation of user-defined<br />

parameters when an exit is being invoked cause <strong>CP</strong> to abend.<br />

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

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

Saved successfully!

Ooh no, something went wrong!