CP_ACCESS Statement

Read syntax diagramSkip visual syntax diagram CP_ACCess userid vdev fm SRmode

Purpose

Use the CP_ACCESS statement to specify a CMS-formatted minidisk that CP should access when it brings the user directory online. This CP-accessed minidisk may contain system, logo, or device information to use at run-time. This information may include log messages and logos. CP searches for this information on any CP-accessed disks you specify in the order that you specify.

How to Specify

Include as many statements as needed; they are optional. You can place CP_ACCESS statements anywhere in the system configuration file. If you specify more than one statement with the same operands, the last operand definition overrides any previous specifications.

Operands

userid
specifies the user ID of the owner of the minidisk that you want to make available to CP.
vdev
is the virtual device number of the specified user's minidisk, as defined in the virtual machine definition in the user directory. The number can be any hexadecimal number between X'0000' and X'FFFF'.
fm
is the file mode letter that you want assigned to all files on the specified minidisk. You can specify any letter from A to Z.
mode
is the access mode. The following is a list of valid modes listed in order of increasing control:
R
Read-only access. CP establishes read access.
RR
Read-only access. CP establishes read access.
W
Write access. CP establishes write access.
WR
Write access. CP establishes write access. If write access is denied, CP establishes read access.
M
Multiple-write access. CP establishes write access. If a previous write, stable, or exclusive mode access exists, CP denies access.
MR
Multiple-write access. CP establishes write access. If a previous write or stable access exists, CP establishes read-only access.
MW
Multiple-write access. CP establishes write access in all cases.
SR
(The default) Stable read-only access. CP establishes read access. CP denies all requests for write access to a disk with an existing SR mode access. A stable access means that the user holding the SR access can be assured that the disk remains stable, unchanged by others, until CP releases the access.
SW
Stable write access. CP establishes write access. CP denies all requests for write access to a disk with an existing SW mode access. A stable access means that the user holding the SW access can be assured that the disk remains stable, unchanged by others, until CP releases the access.
SM
Stable multiple access. CP establishes write access. CP denies all requests for write access to a disk with an existing SM mode access. A stable access means that the user holding the SM access can be assured that the disk remains stable, unchanged by others, until CP releases the access.
ER
Exclusive read-only access. CP establishes read access. CP denies all requests for access to a disk with an existing exclusive mode. An exclusive access means that the user holding the ER access has stable access with the added restriction that no one else has, or can get access to, the specified minidisk until CP releases the access.
EW
Exclusive write access. CP establishes write access. CP denies all requests for access to a disk with an existing exclusive mode. An exclusive access means that the user holding the EW access has stable access with the added restriction that no one else has, or can get access to, the specified minidisk until CP releases the access.

Usage Notes

  1. Because CP does not bring the user directory online until after all CP_ACCESS statements are parsed, CP cannot tell you whether you specified an invalid user ID and virtual device number combination. To find out which CP_ACCESS statements were valid, you must wait until initialization completes and check to see what minidisks CP accessed. To display all the CP-accessed minidisks, use the QUERY CPDISKS command. For more information, see the z/VM: CP Commands and Utilities Reference.
  2. If you specify the NODIRECT option during the IPL, CP ignores all CP_ACCESS statements in the system configuration file.
  3. After initializing CP, use the CPACCESS command to access minidisks for CP and use the CPRELEASE command to release minidisks. For more information, see CPACCESS and CPRELEASE.
  4. The use of the stable and exclusive link modes (SR, SW, SM, ER, EW) is controlled by the LNKSTABL and LNKEXCLU options on the OPTION directory statement. For more information, see OPTION Directory Statement.

Examples

  1. To access three minidisks owned by the MAINT and PICTURE user IDs, use the following CP_ACCESS statements:
      CP_Access maint    0300  a  SR    /* Give CP access to LOGMSG files */
      CP_Access maint    0301  b  SR    /* Give CP access to backup
                                            LOGMSG files                  */
      CP_Access picture  0193  c  SR    /* Give CP access to LOGO files   */