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.

2. If the userid option is used with the XFER option, the userid option is treated as<br />

the origin ID of the files. The result is information about the files generated by<br />

the first user <strong>and</strong> which are owned by the user specified after the XFER option.<br />

If a Class D user enters QUERY PRT USER1, he or she receives information<br />

about the printer files that USER1 owns.<br />

If a Class D user enters QUERY PRT XFER USER2, he or she will receive<br />

information about the printer files that USER2 owns but did not originate.<br />

If a Class D user enters QUERY PRT USER1 XFER USER2, he or she will<br />

receive information about the printer files generated by USER1 but owned by<br />

USER2.<br />

3. For Class D Users:<br />

QUERY READER/PRINTER/PUNCH<br />

v The userid <strong>and</strong> SYSTEM options are permitted for class D users only.<br />

v If you use a one-to-four digit, all-numeric userid, the QUERY comm<strong>and</strong><br />

produces unpredictable results because it also has a one-to-four digit,<br />

all-numeric spoolid parameter.<br />

v If you specify spoolid, you must also specify userid or an asterisk (*).<br />

4. If DEST is not specified on a comm<strong>and</strong> that can select files by DEST, the<br />

destination value of the file is ignored. The AVAIL option limits the files displayed<br />

to include only those files which are currently available to the virtual machine.<br />

When the virtual machine issues a read to the virtual card reader <strong>and</strong> a reader<br />

file is not already open, the first file which is available is selected. It is possible<br />

for a file not currently available to be on the chain ahead of another which is<br />

available (that is, <strong>CP</strong> is checkpointing the file). And it is possible that this file<br />

can become available between the time that this QUERY comm<strong>and</strong> is issued<br />

<strong>and</strong> the time that the virtual machine actually issues a read. If it is important that<br />

a particular file be selected on the read, then that file should be placed at the<br />

beginning of the queue with the ORDER comm<strong>and</strong> before the read is issued. An<br />

alternative for use in a program is Diagnose X'14' subcode X'2C'. This function<br />

allows a program to choose a particular reader file, order it, <strong>and</strong> read the first<br />

record all in one operation.<br />

5. The SECLABEL option is valid only when an external security manager (ESM)<br />

is installed <strong>and</strong> security label checking is enabled.<br />

6. When security label checking is enabled, the ESM is called to verify the user’s<br />

access to each file. If the user is denied access to a specific file, some of the<br />

information about that file must be hidden from the user. The only fields of the<br />

response that will contain information are ORIGINID, FILE, CLASS, HOLD,<br />

DATE <strong>and</strong> TIME. All other fields contain asterisks. If a security label is not<br />

assigned to the file, the SECLABEL field contains the word NONE.<br />

7. The default date format for certain <strong>CP</strong> <strong>and</strong> CMS comm<strong>and</strong>s can be set on a<br />

system-wide basis <strong>and</strong> also for the individual user. The system-wide default<br />

date format is set with the SYSTEM_DATEFORMAT system configuration<br />

statement. The user’s default date format is set with the DATEFORMAT user<br />

directory control statement. The system-wide default <strong>and</strong> the user’s default can<br />

also be set with the <strong>CP</strong> SET DATEFORMAT comm<strong>and</strong>. The user’s default date<br />

format defaults to the system-wide default. The system-wide <strong>and</strong> user settings<br />

can be queried with the <strong>CP</strong> QUERY DATEFORMAT comm<strong>and</strong>. The hierarchy of<br />

possible date format settings for the QUERY RDR/PRT/PUN comm<strong>and</strong>, from<br />

highest priority to lowest, is:<br />

v QUERY RDR/PRT/PUN comm<strong>and</strong> option<br />

v User default<br />

v System-wide default<br />

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

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

Saved successfully!

Ooh no, something went wrong!