VM to VM Group File Copy

This Process illustrates a VM group file copy, which copies source modules from one minidisk to a minidisk at another site. Notice that a source file name, as well as a group name, is specified on the FROM clause of the COPY statement. This causes the Connect:Direct® for VM system to send members of the group beginning with that source file name instead of beginning with the first member of the group; therefore, members of a group are excluded from the transfer.

GROUP9  PROCESS      SNODE=CD.VM.NODE
STEP01  COPY  FROM  (DSN=’ACF2C A*’              -
                     GROUP=’* A*’                -
                     LINK=(IVVB7,RIVVB7,RR,191)  -
                     DISP=SHR)                   -
              TO    (GROUP=’%1% A%2%’            -
                     LINK=(IVVB6,WIVVB6,W,301)   -
                     DISP=RPL)

The parameter GROUP on the TO clause contains the special symbols %1% and %2%, which are used to build the destination name. Each symbol is replaced by characters from the name determined to be in that source group.

The source disk, CDA7 191, contains the following:

ACF2A ASSEMBLE 			ARMMOD ASSEMBLE
ACF2B ASSEMBLE 			DMCXRJ ASSEMBLE
ACF2C ASSEMBLE			DMDPTR ASSEMBLE
ALOEXIT ASSEMBLE 			DMFPTR ASSEMBLE
ASMSAMP ASSEMBLE 			DMGFTR ASSEMBLE
ASMTASK ASSEMBLE 			DMMF ASSEMBLE

After the transfer completes, the CDA6 300 disk contains:

CF2C ASSEMBLE			DMCXRJ ASSEMBLE
ALOEXIT ASSEMBLE			DMDPTR ASSEMBLE
ASMSAMP ASSEMBLE			DMFPTR ASSEMBLE
ASMTASK ASSEMBLE			DMGFTR ASSEMBLE
ARMMOD ASSEMBLE			DMMF ASSEMBLE

ACF2A and ACF2B are excluded from the COPY because the DSN parameter indicated that the group file copy should start with the ACF2C A* file.