. What is the best way to update one Dynam pool out of the COMPOOL record?
The CA Dynam COMPOOL record may contain many virtual volumes or POOLs. To delete or update only one such record without affecting the others, care must be taken! The CACCDBU0 utility DEFINE statement used with DUPREC(DELETE) will remove the entire COMPOOL record, and add only the one being defined. To remove only one POOL, use DELETE.
These CACCDBU0 control statements illustrate what happens.
DEFINE with DUPREC DELETE // EXEC CACCDBU0 DEFINE COMPOOL CPU(*) - ROTATE(YES) POOLID(POOL01) - DUPREC(DELETE) - MEMBERS(TMPWK2,1,EOV) /*
will delete any existing pool and will create the new one.
So DEFINE with DUPREC(DELETE) will delete the entire COMPOOL record.
DELETE COMPOOL and DEFINE with DUPREC APPEND // EXEC CACCDBU0 DELETE COMPOOL CPU(*) - POOLID(POOL01) - REFRESH(YES) DEFINE COMPOOL CPU(*) - ROTATE(YES) POOLID(POOL01) - DUPREC(APPEND) - MEMBERS(TMPWK2,1,EOV) /*
This command will ONLY delete the POOL01 from the COMPOOL and will not touch the other COMPOOL records. It will than add the new (updated) pool POOL01 into the COMPOOL record.