Previous Topic: Definitions

Next Topic: Return Codes and Error Messages

Using ADDMDISK with Macros

The ADDMDISK command stacks a record for use by the calling macro when it successfully allocates the new minidisk if a CA VM:Secure macro calls the ADDMDISK command. The stacked record is in lastin/firstout (LIFO) order and contains all the information necessary to build an MDISK record. The stacked record has the following format:

vaddr devtype start size volser linkmode rpw wpw mpw

The start and size values are in blocks for FBA and cylinders for CKD devices.

If another CA VM:Secure macro does not call ADDMDISK, CA VM:Secure does not stack any record.

For security reasons, the ADDMDISK command will remove pre‑existing LINK statements from user directory entries that link to the newly created minidisk.

Examples