Renaming or deleting a compatibility mode aggregate
To rename a compatibility mode aggregate, use the IDCAMS ALTER command with the NEWNAME parameter. You cannot rename an aggregate if it is mounted.
After the rename is done, the name of the file system stored in the zFS aggregate will not match the aggregate name. This is a requirement for compatibility mode zFS aggregates. To reconcile the file system and aggregate name, the zFS file system must be mounted initially as read/write after the IDCAMS RENAME is complete. This allows zFS to reconcile the file system name with the new aggregate name. After the name is reconciled, the aggregate can then be mounted read-only.
- The data component name is the same as the cluster name with DATA appended
- You want to rename both the cluster name and the data component name.
//SUIMGVMS JOB (ACCTNO),'SYSPROG',CLASS=A,
// MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER PLEX.JMS.AGGR006.LDS0006 -
NEWNAME(PLEX.JMS.AGGR008.LDS0008)
ALTER PLEX.JMS.AGGR006.LDS0006.* -
NEWNAME(PLEX.JMS.AGGR008.LDS0008.*)
/*
//SUIMGVMD JOB (ACCTNO),'SYSPROG',CLASS=A,
// MSGCLASS=H,MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE PLEX.JMS.AGGR006.LDS0006
/*
See z/OS DFSMS Access Method Services Commands z/OS DFSMS Access Method Services Commands for information and restrictions on IDCAMS ALTER NEWNAME and DELETE.