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.

DEFINE EXIT<br />

Usage Notes<br />

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

2. To assign entry points or external symbols to an exit point, use the<br />

ASSOCIATE EXIT comm<strong>and</strong> (page 18).<br />

3. To activate a new exit after defining it, use the ENABLE EXITS comm<strong>and</strong><br />

(page 431).<br />

4. To change the definition of an existing dynamic exit point, or to remove the exit<br />

point from the system, use the MODIFY EXIT comm<strong>and</strong> (page 618).<br />

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

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

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

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

point are defined.<br />

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

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

10. For more information about user-defined exits, see the z/<strong>VM</strong>: <strong>CP</strong> Exit<br />

Customization book.<br />

Example 1:<br />

To define an exit that will be entered every time a MESSAGE comm<strong>and</strong> is issued,<br />

enter the following:<br />

define exit f422 at hcpxmgms + 4 41700000<br />

Ready;<br />

Example 2:<br />

166 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!