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>CACHE<br />

Usage Notes<br />

Responses<br />

Messages<br />

1. To release a minidisk <strong>and</strong> all cached files on that minidisk, enter a <strong>CP</strong>RELEASE<br />

comm<strong>and</strong> <strong>and</strong> specify the access mode of the minidisk. For more information,<br />

see “<strong>CP</strong>RELEASE” on page 92.<br />

2. If you find yourself caching the same files each time, you can avoid issuing the<br />

<strong>CP</strong>CACHE comm<strong>and</strong> by creating a <strong>CP</strong>CACHE FILES file on the minidisk. The<br />

<strong>CP</strong>CACHE FILES file lists all the files on that minidisk that you want <strong>CP</strong> to<br />

cache. You can use generic file names <strong>and</strong> file types. When you use the<br />

<strong>CP</strong>ACCESS comm<strong>and</strong> or the <strong>CP</strong>_ACCESS statement to identify the minidisk to<br />

<strong>CP</strong>, <strong>CP</strong> looks for a <strong>CP</strong>CACHE FILES file on that minidisk <strong>and</strong> caches all the<br />

specified files.<br />

Here is an example of what a <strong>CP</strong>CACHE FILES file might look like:<br />

/*-------------------------------------<br />

Cache often-used logo picture files<br />

-------------------------------------*/<br />

T<strong>CP</strong>IP LOGO<br />

P<strong>VM</strong> LOGO<br />

/*-----------------------------<br />

Cache all log message files<br />

-----------------------------*/<br />

* LOGMS*<br />

3. If you want to see which files are being used the most, enter a <strong>CP</strong>LISTFILE<br />

comm<strong>and</strong> with the STAT option. This gives you a list of the files <strong>and</strong> how many<br />

times they have been opened <strong>and</strong> closed. For more information on the<br />

<strong>CP</strong>LISTFILE comm<strong>and</strong>, see “<strong>CP</strong>LISTFILE” on page 88.<br />

Response 1:<br />

If you want to cache all LOGO files on your A-disk that start with the string SYS,<br />

you can enter the following:<br />

cpcache sys* logo a<br />

1 file(s) cached<br />

Ready;<br />

Response 2:<br />

If <strong>CP</strong> cannot find any files that match the specified file name <strong>and</strong> file type, you see<br />

the following:<br />

cpcache my logo a<br />

No files cached<br />

Ready;<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>6704E Missing token at end of line<br />

H<strong>CP</strong>6706E Invalid file {name|type|mode} - {fn|ft|fm}<br />

H<strong>CP</strong>6729I No files cached.<br />

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

H<strong>CP</strong>6731E Disk fm is being released -- comm<strong>and</strong><br />

rejected

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

Saved successfully!

Ooh no, something went wrong!