The FORMAT user exit is called each time a minidisk needs to be formatted, allowing you to either:
FORMAT userid userid2 vaddr acigroup link_vaddr fmtmode fmtblksize
fmtlabel fmttype macroname fmtcmd cmdtarget
The user ID running the command requesting minidisk formatting.
The owning user ID of the minidisk being formatted.
The virtual address of the minidisk owned by userid2.
The ACI group of userid2. If userid2 does not have an ACI group or if the ACI group is not available, an asterisk (*) is specified.
The virtual address of the link to the disk being formatted.
The CMS access mode to be used on the format command.
The block size to be used on the format command. Expected values are 512, 1024, 2048, 4096, 1K, 2K, or 4K.
The label to be used on the format command.
Indicates if the disk being formatted is a new area (ADD) or is being deleted (DEL).
The caller of the FORMATMD macro, which calls the FORMAT user exit.
Indicates the format command that CA VM:Director would use, as specified on the CA VM:Director ALTERNAT record in the PRODUCT CONFIG file.
Note: For more information, see ALTERNAT Record.
Indicates the CA VM:Director primitive to use to issue your commands. Valid entries for this field are USER or SERVANT.
Because of the requirements of issuing macro primitives, the FORMAT user exit cannot be written in Assembler. It must be coded in REXX or EXEC2.
When moving a minidisk from one location to another and the device type, block size, or number of cylinders of the disk has not changed, CA VM:Director uses DDR to move the minidisk to its new location instead of using the FORMAT and COPYFILE commands. This means that only the source minidisk is formatted; therefore, the FORMAT user exit is called only for the source minidisk.
The FORMAT user exit uses CA VM:Director macro primitives, commands that are issued within the user exit, to communicate with the user or servant user ID. The user or servant user ID is the user ID where the minidisk and the SFS directory are accessed.
The CA VM:Director macro primitives that are most likely to be used are:
To use any of these primitives, precede it with the token TEST. This token allows the primitive to pass a nonzero return code back to the exit.
The sample (prototype) user exit contains examples of the use of these primitives.
The following table describes the return codes:
|
Return Code |
Meaning |
|---|---|
|
0 |
The FORMAT user exit successfully formatted and accessed the minidisk. |
|
4 |
The FORMAT user exit defers formatting to the default CA VM:Director format utility program (CMS FORMAT command). |
|
8 |
An error occurred while formatting or accessing the minidisk. A message has been stacked that will be displayed to the issuing user. CA VM:Director treats this as a failure to format the minidisk. |
The FORMAT user exit is called by the VMXFMT00 macro, whose optimized macro name is FORMATMD, under the following circumstances:
|
Called by |
Optimized Macro Name |
Under These Circumstances |
|---|---|---|
|
VMXCMP00 |
COMPRESS |
While defragmenting disk space using the COMPRESS command |
|
VMXRECLM |
RECLAIM |
While reclaiming DASD space using the RECLAIM command |
|
VMXMANS0 |
MAN000S0 |
|
|
VMXMAI40 |
MAI00040 |
When removing a user ID with the MAINT MANAGE userid REMOVE command |
|
VMXMAN30 |
MAN00030 |
When using selection 4 from the Manager Selection Menu to scratch a minidisk |
|
VMXMAN40 |
MAN00040 |
When using selection 5 from the Manager Selection Menu to remove a user ID |
|
VMXMANA0 |
MAN000A0 |
When using selection 9 from the Manager Selection Menu to redefine a minidisk in place |
|
Copyright © 2014 CA.
All rights reserved.
|
|