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.

ASSOCIATE MESSAGES / MSGS<br />

Usage Notes<br />

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

Note: The order that you specify the entry points <strong>and</strong> external symbols is the<br />

order in which <strong>CP</strong> will call them.<br />

EPName name<br />

is the name (or names) of the entry point or external symbol that points to the<br />

data in <strong>CP</strong>’s system execution space where the local message repository can<br />

be found. Each name must be a 1- to 8-character string. The first character<br />

must be alphabetic or one of the following special characters: dollar sign ($),<br />

number sign (#), underscore (_), or at sign (@). The rest of the string can be<br />

alphanumeric characters, the 4 special characters ($, #, _, <strong>and</strong> @), or any<br />

combination thereof.<br />

Note: The order that you specify the entry points <strong>and</strong> external symbols is the<br />

order in which <strong>CP</strong> will call them.<br />

1. H<strong>CP</strong> is the st<strong>and</strong>ard component ID for z/<strong>VM</strong> messages. If you do not issue any<br />

ASSOCIATE MESSAGES or MSGS comm<strong>and</strong>s (or configuration file statements)<br />

for an entry point, H<strong>CP</strong>MES is, by default, the only message repository in the<br />

search list for that entry point.<br />

If you do assign one or more local message repositories to an entry point, those<br />

repositories are added to the search list in the order that you specify (using the<br />

REPLACE, FOLLOWING, or PRECEDING oper<strong>and</strong>s) <strong>and</strong>, by default, H<strong>CP</strong>MES<br />

is the last message repository in the search list.<br />

When the routines in that entry point issue a message, <strong>CP</strong> searches the first<br />

message repository in the search list. If <strong>CP</strong> finds the message in that repository,<br />

it issues the message <strong>and</strong> does not search any more repositories. If <strong>CP</strong> does<br />

not find the message, it continues searching through each repository until it<br />

finds the first occurrence of that message.<br />

Using ASSOCIATE MESSAGES or MSGS comm<strong>and</strong>s (or configuration file<br />

statements), you can assign local message repositories which override existing<br />

z/<strong>VM</strong> messages in the H<strong>CP</strong>MES repository. Or, you can specify H<strong>CP</strong> as the<br />

component ID <strong>and</strong> move the z/<strong>VM</strong> message repository to a place in the search<br />

list other than last place.<br />

2. Before <strong>CP</strong> can begin using your message repository, you must:<br />

a. Generate your messages using the CMS GENMSG comm<strong>and</strong>. For more<br />

information about the CMS GENMSG comm<strong>and</strong>, see the z/<strong>VM</strong>: CMS<br />

<strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong>.<br />

b. Load the message repository file using the <strong>CP</strong>XLOAD comm<strong>and</strong> (page 101).<br />

3. If <strong>CP</strong> cannot find the message in the associated message repositories (or the<br />

entry point can’t be found) when the message is being displayed, <strong>CP</strong> displays<br />

message substitution data, if any.<br />

4. To display information about the local message repositories available on your<br />

system, use the QUERY <strong>CP</strong>LANGLIST comm<strong>and</strong> <strong>and</strong> specify the ASSOCIATED<br />

oper<strong>and</strong> (page 737).<br />

5. To remove the message repository file from <strong>CP</strong>’s system execution space:<br />

a. Use the DISASSOCIATE comm<strong>and</strong> (page 274) to revoke the external<br />

symbol assignment made with the ASSOCIATE MESSAGES comm<strong>and</strong> or<br />

configuration file statement<br />

b. Use the <strong>CP</strong>XUNLOAD comm<strong>and</strong> (page 107) to unload the repository.<br />

6. To have <strong>CP</strong> use the message repositories associated with a specific<br />

component, you must specify that component ID on the COMPID keyword of

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

Saved successfully!

Ooh no, something went wrong!