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.

#<strong>CP</strong><br />

►►<br />

#<strong>CP</strong><br />

Authorization<br />

Purpose<br />

Oper<strong>and</strong>s<br />

comm<strong>and</strong><br />

Usage Notes<br />

Privilege Class: Any<br />

Use #<strong>CP</strong> to process one or more control program (<strong>CP</strong>) comm<strong>and</strong>s from a guest<br />

environment.<br />

comm<strong>and</strong><br />

identifies the name <strong>and</strong> oper<strong>and</strong>s of the <strong>CP</strong> comm<strong>and</strong> or comm<strong>and</strong>s you want<br />

to enter. You must precede the first comm<strong>and</strong> with at least one blank. If you are<br />

specifying multiple <strong>CP</strong> comm<strong>and</strong>s, separate them with your logical-line-end<br />

symbol. (See Usage Note 4.)<br />

1. The pound sign (#) shown above represents the logical-line-end symbol in effect<br />

for your virtual machine. If you have redefined the logical-line-end symbol, you<br />

must substitute your symbol for the pound sign (#).<br />

2. The #<strong>CP</strong> comm<strong>and</strong> is a h<strong>and</strong>y way to reduce the number of operations required<br />

to enter a <strong>CP</strong> comm<strong>and</strong> from a virtual console. For example, to display the<br />

number of files you have on your virtual machine, enter cp query files. This<br />

comm<strong>and</strong> is equivalent to the following operations:<br />

a. Press PA1 to enter the <strong>CP</strong> comm<strong>and</strong> environment.<br />

b. Enter QUERY FILES to display the number of files.<br />

c. Enter BEGIN to exit the <strong>CP</strong> comm<strong>and</strong> environment.<br />

3. Before you enter the #<strong>CP</strong> comm<strong>and</strong>, be sure that:<br />

v Your virtual machine is operating with SET LINEDIT on. (This is the default.)<br />

v The first three characters you enter in the comm<strong>and</strong> are #<strong>CP</strong> (uppercase or<br />

lowercase); the pound sign (#) represents your currently defined<br />

logical-line-end symbol.<br />

v At least one blank separates the #<strong>CP</strong> from the comm<strong>and</strong> itself.<br />

4. You can enter multiple comm<strong>and</strong>s as oper<strong>and</strong>s of #<strong>CP</strong> comm<strong>and</strong> if you<br />

separate each comm<strong>and</strong> from the next with the logical-line-end symbol.<br />

5. The #<strong>CP</strong> comm<strong>and</strong> has no meaning if you are running in full-screen mode.<br />

6. Table 3 summarizes the system response to various #<strong>CP</strong> comm<strong>and</strong>s:<br />

Table 3. System Responses to Various #<strong>CP</strong> <strong>Comm<strong>and</strong>s</strong><br />

Comm<strong>and</strong> System Action<br />

#<strong>CP</strong> Your virtual machine enters the <strong>CP</strong><br />

environment.<br />

#<strong>CP</strong> QUERY FILES The QUERY FILES comm<strong>and</strong> is executed.<br />

#<strong>CP</strong><br />

#<strong>CP</strong> QUERY FILES#QUERY USERS Two separate QUERY comm<strong>and</strong>s are executed.<br />

►◄<br />

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

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

Saved successfully!

Ooh no, something went wrong!