Previous Topic: REPENTRY CommandNext Topic: RESET Command


MDISK and MDOPT Statements

CA VM:Director creates, changes, or moves minidisks for a user ID based on MDISK and MDOPT statements in the new directory entry that is replacing the original directory entry.

MDISK statements define minidisks. MDOPT statements define options for minidisks. MDOPT statements precede MDISK statements; CA VM:Director applies the options specified on an MDOPT statement to all MDISK statements that follow that statement until CA VM:Director encounters an MDOPT statement with different options. In this way, the issuing user ID can specify unique options for each minidisk. If CA VM:Director does not find an MDOPT statement in the directory entry, it uses options specified on the REPENTRY command and default values described in MDOPT Statements.

When replacing the directory entry, the REPENTRY command evaluates the MDISK statements in the original entry against the MDISK statements in the new entry and proceeds as indicated:

MDISK statement contents

REPENTRY command function

In the new entry that specifies all of the same values as an MDISK statement in the original entry

Leaves the minidisk unchanged

In the new entry that specifies a virtual address not specified on any MDISK statement in the original entry

Creates a new minidisk

In the new entry that specifies a virtual address specified on an MDISK statement in the original entry, but the values defining the minidisk are different

Redefines the minidisk in new space and moves the data

In the original entry that specifies a virtual address not specified by an MDISK statement in the new entry

Deletes the minidisk

When REPENTRY executes, CA VM:Director passes the values specified on REPENTRY, the MDISK statements, and the MDOPT statements to the ADDMDISK and CHGMDISK commands, which create, change, or move the minidisks. REPENTRY calls the DELMDISK command to delete minidisks.

CA VM:Director cannot move a minidisk defined in system T‑DISK or V‑DISK space to permanent space, or conversely. CA VM:Director can only redefine T‑DISK or V‑DISK minidisks with a different size or on a different device type.

MDISK Statements

Because CA VM:Director can dynamically add or move a minidisk, CA VM:Director supports a special format of the MDISK statement that allows it to automatically determine where to place the new minidisk. The parameters appear in the same order as in a true MDISK record and their values are very similar to those on the ADDMDISK and CHGMDISK commands.

To create a permanent minidisk, a temporary minidisk, or a virtual minidisk, you use the following formats:

Mdisk vaddr [{devtype | *} [{start | *} [{size | *} [{volid | *} ["Parms"]]]]]
Mdisk vaddr {devtype | *} TDSK [size | *]  
Mdisk vaddr FB-512 VDSK [{size | *} ["Parms"]] 
Mdisk vaddr {devtype | *} DEVNO [{rdev | *} ["Parms"]]

Parms:
{mode | *} [rpw [wpw [mpw]]]

To change or move a permanent minidisk, a temporary minidisk, or a virtual minidisk, you use the following formats:

Mdisk vaddr [{devtype|=|*} [{start|=|*} [{size|=|*} [{volid|=|*} ["Parms"]]]]]
Mdisk vaddr [{devtype|=|*} [{TDSK | =} [{size | = | *}]]]
Mdisk vaddr FB-512 VDSK [{size|=|*} ["Parms"]]

Parms:
{mode | = | *} [{rpw | =} [{wpw | =} [mpw | =]]]

To change the minidisk label or passwords but not move the minidisk, the issuing user enters an equal sign or the original value for each of the devtype, start, size, and volid fields.

Note: For parameter definitions, see the ADDMDISK Command.

MDOPT Statements

CA VM:Director uses MDOPT statement options when it creates, changes, or moves minidisks. This section shows the format of and option definitions for MDOPT statements. CA VM:Director ignores the FORMAT | NOFORMAT, SUBPOOL, and LABEL options when creating or changing minidisks on T-DISK or V-DISK. For more information about MDOPT statement options, see the definitions for equivalent options in ADDMDISK Command in this chapter.

CA VM:Director removes all MDOPT statements from the new directory entry before it places the entry in the source directory.

MDOPT “Parms”

Parms:
[Format | NOFormat]
[SUBpool {poolname | *}]
[BLKsize {blksize | *}]
[Label {label | *}]
[AUnit {unitsize | *}]
[STEM stemname[.]]
[Format | NOFormat]

Specifies whether CA VM:Director is to format the new and original minidisks. For these minidisks, this option overrides the FORMAT option on the REPENTRY command.

[SUBpool poolname]

Specifies the subpool from which CA VM:Director is to allocate new minidisks. The default for poolname is *MNGR, which searches the list of subpools in which the directory manager for this user ID can allocate space for the first subpool with enough space.

If you specify the subpool by name, that subpool must be defined in the DASD CONFIG file and included in your or the owning manager’s list of subpools in the VMDIRECT MANAGERS file. ANYPOOL authorization overrides this restriction. To specify a subpool list, use one of the variable subpool categories listed in the table, Variable Subpool Categories, in the section Subpool Categories earlier in this chapter.

[BLKsize [blksize]]

Specifies the CMS block size CA VM:Director is to use when formatting minidisks. Possible values for blksize are 512, 1024, 2048, 4096, 1K, 2K, and 4K. The default for blksize is the value specified for AUNIT; if no value is specified for AUNIT, the default for blksize is the default block size defined for the device type.

If you specify NOFORMAT on the REPENTRY command and the MDOPT statement, CA VM:Director ignores this option.

[Label [label]]

Specifies the minidisk label that CA VM:Director is to give minidisks when it formats them. The default is DSKvaddr. CA VM:Director replaces vaddr with the virtual device address.

If you specify NOFORMAT on the REPENTRY command and the MDOPT statement, CA VM:Director ignores this option.

[AUnit [unitsize]]

Specifies an alternate allocation unit size for CA VM:Director to use when it calculates the size of new minidisks. When this option is used, CA VM:Director interprets the value for size on MDISK statements as the number of blocks of the size unitsize. It then uses this number to calculate the actual allocation size for the type of device used.

Possible values for unitsize are 512, 1024, 2048, 4096, 1K, 2K, and 4K. The default for unitsize is the specified or default value for blksize.

[STEM stemname[.]]

Specifies the name of REXX stem variable array containing the statements which define the directory entry contents. Any filetype or filemode parameters are ignored. The array contains the directory entry definition, so no disk file is referenced. The number of statements in the directory entry is defined in element stemname.0, stemname.1 contains the first statement in the directory entry, and so on. The stem must be defined in the same REXX program which calls the REPENTRY command, before the command is called.

Return Codes and Error Messages

The table that follows shows errors that do not cause immediate termination, but do prevent CA VM:Director from updating minidisks. The command exits with return code 54 and message 633E.

REPENTRY Command: Error Messages (No Immediate Termination)

The following table describes the messages:

Message Number

Text

0383I

FROM EXIT: (user coded messages from userexits)

0451I

ACCOUNT NUMBER number IS INVALID FOR USER userid

0562E

MINIDISK vaddr NOT action, CURRENTLY IN USE

0662E

MINIDISK userid vaddr IS A T‑DISK AND MAY NOT BE MOVED TO OR FROM PERMANENT SPACE

The table, REPENTRY Command: Return Codes and Error Messages (Immediate Termination), lists errors that cause immediate termination and shows the return code for each.

REPENTRY Command: Return Codes and Error Messages (Immediate Termination)

The following table describes the return codes and the associated error messages:

Return Code

Message Number

Text

2

0018E

INVALID OPTION option

4

0644E

NOWAIT OPTION SPECIFIED BUT THE SERVANT FACILITY IS NOT ACTIVE

6

0648E

THE NOWAIT OPTION MAY NOT BE SPECIFIED WITH THE STACK OR FILE OPTIONS

12

0038E

MISSING PARAMETER

14

0531E

PARAMETER userid IS TOO LONG

16

0265E

NOT AUTHORIZED FOR authorization words

18

0127E

USER userid1 EXCEEDED USER userid2 type PASSWORD LIMIT {FOR vaddr}

20

0349E

PASSWORD IS INCORRECT

22

0356E

USER userid DOES NOT EXIST

25

0260E

PROFILE profname IS UNDEFINED

26

0382E

USER userid IS ON HOLD

28

0039E

INVALID PARAMETER parameter

30

0643E

EXTRA PARAMETERS parameters WERE ENTERED AND ARE NOT ALLOWED

32

0681E

FILE filename filetype filemode DOES NOT EXIST

34

0659E

ENTRY entry MUST BE RETRIEVED USING THE LOCK OPTION OF GETENTRY BEFORE USING REPENTRY TO REPLACE IT

36

0660E

ENTRY entry WAS PREVIOUSLY RETRIEVED FOR UPDATE BY userid

38

0621E

UNEXPECTED RETURN CODE code FROM OPEN

40

0076S

USER ERROR code COPYING FILE filename filetype

42

0621E

UNEXPECTED RETURN CODE code FROM OPEN

44

0277E

FIRST RECORD word1 word2 CONFLICTS WITH FILEID filename filetype

46

0277E

FIRST RECORD word1 word2 CONFLICTS WITH FILEID filename filetype

48

0631E

THE NAME name ON THE { PROFILE | USER } RECORD MUST MATCH THE FILENAME OF THE DIRECTORY ENTRY

52

0018E

INVALID OPTION option

54

0633E

ONE OR MORE ERRORS WERE DETECTED WHILE PROCESSING THE UPDATE OF USERID userid

Note: