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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Responses<br />

Messages<br />

v Create a <strong>CP</strong>CACHE FILES file on the minidisk before you enter the<br />

<strong>CP</strong>ACCESS comm<strong>and</strong>. The <strong>CP</strong>CACHE FILES file should contain the file<br />

names <strong>and</strong> file types of the frequently used files.<br />

See “<strong>CP</strong>CACHE” on page 83, for more information on caching files.<br />

4. Use the <strong>CP</strong>RELEASE comm<strong>and</strong> to release a disk that you have accessed using<br />

the <strong>CP</strong>ACCESS comm<strong>and</strong>. For more information, see page “<strong>CP</strong>RELEASE” on<br />

page 92.<br />

5. Many users can link to a minidisk. We strongly recommend that you do not use<br />

the <strong>CP</strong>ACCESS comm<strong>and</strong> to identify a minidisk to <strong>CP</strong> when some other user<br />

has write access to that minidisk. After accessing the minidisk, <strong>CP</strong> creates in<br />

memory a directory of all the files on that minidisk. If someone updates a file on<br />

that minidisk, <strong>CP</strong> is no longer maintaining a current directory <strong>and</strong> the results can<br />

be unpredictable. If you need to update a file on a disk that <strong>CP</strong> is accessing,<br />

use the <strong>CP</strong>RELEASE comm<strong>and</strong> to release the disk before you update the file.<br />

6. <strong>CP</strong>ACCESS accesses a minidisk for <strong>CP</strong> to read from. If you need to change a<br />

file on that disk, you must link <strong>and</strong> access the disk first.<br />

7. If your virtual machine has privilege class A or E <strong>and</strong> can access a<br />

<strong>CP</strong>-accessed minidisk in read mode, you can use the <strong>CP</strong>TYPE comm<strong>and</strong> to<br />

look at the contents of a file on that disk. You do not have to link to the disk;<br />

you only need to have the capability to do so without a password. For more<br />

information, see “<strong>CP</strong>TYPE” on page 95.<br />

8. If the volume that contains the minidisk is under CSE cross system link<br />

protection, <strong>CP</strong> performs all CSE processing.<br />

9. The use of the stable <strong>and</strong> exclusive link modes (SR, SW, SM, ER, EW) is<br />

controlled by the LNKSTABL <strong>and</strong> LNKEXCLU options on the OPTION directory<br />

control statement. For more information about the OPTION statement, see the<br />

z/<strong>VM</strong>: <strong>CP</strong> Planning <strong>and</strong> Administration.<br />

Response 1:<br />

If you specify the SYNCHRONOUS oper<strong>and</strong>, you see something like:<br />

cpaccess oper1 06dc b sr synchronous<br />

OPER1’s 06DC accessed in mode B<br />

Ready;<br />

Response 2:<br />

H<strong>CP</strong>002E Invalid oper<strong>and</strong> - oper<strong>and</strong><br />

If you specify the ASYNCHRONOUS oper<strong>and</strong> or you choose it as the default by<br />

specifying nothing, you see something like:<br />

cpaccess oper1 06dc b sr<br />

<strong>CP</strong>ACCESS request for mode B scheduled<br />

Ready;<br />

<strong>CP</strong>ACCESS request for OPER1’s 06DC in mode B completed<br />

H<strong>CP</strong>003E Invalid option - comm<strong>and</strong> contains<br />

extra option(s) starting with oper<strong>and</strong><br />

H<strong>CP</strong>007E Invalid userid - userid<br />

H<strong>CP</strong>046E DASD rdev offline<br />

<strong>CP</strong>ACCESS<br />

H<strong>CP</strong>101E DASD vdev forced R/O; R/O by {nnnn<br />

users|userid}[; stable by {nnnn<br />

users|userid}]<br />

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

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

Saved successfully!

Ooh no, something went wrong!