The DISKCOPY user exit allows CA VM:Director to use an alternative application when copying the contents of one minidisk to another.
DISKCOPY caller calltype diruser userid cuu files linkcuu accmode linkcuu2 accmode2 devtype size blksize Cmdtarget
By default, the system uses the CMS FORMAT and COPYFILE utility programs to copy minidisk contents when disk are moved or the size of the disk changes. If the new disk has the same size and device type, the faster DDR utility is used.
The caller of the command.
The type of call to be made. Indicates one of the following parameters:
The command issuer ID or the servant userid.
The user ID that owns the source disk.
The device address of the source disk.
The number of files on the source disk.
The link address of the source disk.
The access mode of the source disk. An ‘*’ indicates a CLONE operation.
The link address of the target disk.
The access mode of the target disk. An ‘*’ indicates a CLONE operation.
The device type of the source disk.
The size of the source disk in blocks or cylinders
The block size of the target disk. An ‘=’ indicates a CLONE operation.
The label for the target disk. An ‘=’ indicates a CLONE operation.
Indicates one of the following:
Because of the requirements for issuing macro primitives, the DISKCOPY user exit cannot be written in Assembler. It must be coded in REXX or EXEC2.
The DISKCOPY user exit uses CA VM:Director macro primitives to communicate with the user or servant user ID. The user or servant user ID is the user ID where the minidisk or the SFS directory is accessed. The CA VM:Director macro primitives most likely to be used are:
Use these primitives to manipulate the data in the user or servant program stack. 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 DISKCOPY user exit successfully copied the requested files to the minidisk. |
|
4 |
The DISKCOPY user exit defers file copying to the default CA VM:Director copy utility program (COPYFILE or DDR). |
|
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 DISKCOPY user exit is called by the CLONEDSK macro under the following circumstances:
|
Called by |
Optimized Macro Name |
Under These Circumstances |
|---|---|---|
|
VMXCMD00 |
CHGMDISK |
When a disk is changed with the CHGMDISK command |
|
VMXDUP00 |
DUPMDISK |
When a disk is duplicated with the DUPMDISK command |
|
VMXMANB0 |
MAN000B0 |
When a disk is changed with the MANAGE command |
|
Copyright © 2014 CA.
All rights reserved.
|
|