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 cmd tell epname hcpxmgms ibmclass a privclasses a<br />

Ready;<br />

define comm<strong>and</strong> tell ibmclass b privclasses b<br />

Ready;<br />

define comm<strong>and</strong> tell anytime privclassany<br />

Ready;<br />

Important Note: Normally, it is not a good practice to define a <strong>CP</strong> comm<strong>and</strong> that<br />

has the same name as a comm<strong>and</strong>, exec, or function belonging<br />

to another z/<strong>VM</strong> subsystem. (This newly-defined comm<strong>and</strong> will<br />

interfere with the CMS TELL comm<strong>and</strong>.) However, in this case,<br />

we thought we would show you an example of how to create a<br />

“synonym” for a common CMS comm<strong>and</strong> that could be used by<br />

novice z/<strong>VM</strong> users when they accidentally drop out of their CMS<br />

session into <strong>CP</strong>.<br />

Response 2:<br />

To define 2 new comm<strong>and</strong>s, CONTINUE <strong>and</strong> RESUME, which behave like the <strong>CP</strong><br />

BEGIN comm<strong>and</strong>, enter the following:<br />

define cmd continue abbr 4 epname hcpcmcbe ibmclass g priv g<br />

Ready;<br />

define comm<strong>and</strong> resume epname hcpcmcbe ibmclass g priv g<br />

Ready;<br />

In this example, the CONTINUE <strong>and</strong> RESUME comm<strong>and</strong>s:<br />

v Have the same entry point <strong>and</strong> syntax as the <strong>CP</strong> BEGIN comm<strong>and</strong>,<br />

v Are <strong>IBM</strong> class G,<br />

v Are privilege class G, <strong>and</strong><br />

DEFINE COMMAND / CMD<br />

v Can only be issued after logon.<br />

Additionally, the CONTINUE comm<strong>and</strong> has a minimum abbreviation of 4 (CONT)<br />

<strong>and</strong> the RESUME comm<strong>and</strong> has no minimum abbreviation.<br />

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

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

Saved successfully!

Ooh no, something went wrong!