You can rename a DASD data set that is protected by a discrete
or generic RACF® profile using
the IEHPROGM utility, the access method
services ALTER command, or the TSO RENAME command. IEHMOVE can also rename a data
set but does so by creating a new data set having the
new name. The following rules apply when renaming a data set:
- You cannot rename a multivolume, non-VSAM data set for which a
discrete profile exists.
- You must have the OPERATIONS attribute (or group-OPERATIONS with
the restrictions it carries) or have ALTER access authority to the
data set.
Note: If the data set is protected by a discrete profile,
you cannot rename the data set to a name whose high-level qualifier
is a group that you are connected to with less than CREATE authority,
regardless of your OPERATIONS or group-OPERATIONS attribute.
- You must have the same authority to the new name as would be required
to create it.
- The new name must conform to the RACF data
set naming conventions, unless the naming convention table modifies
the processing of data set names.
- If the data set is covered by a generic profile, you cannot rename
it unless the new name is also covered by a generic profile and you
have either ALTER authority to both new and old generic profiles or
the OPERATIONS attribute (or group-OPERATIONS attribute with the restrictions
it carries).
- You cannot rename an individual data set of a GDG if:
- It is protected by a profile for the base portion of the GDG name.
- The new name is a non-GDG name or is a GDG name for which there
is no base profile defined.
To effectively rename a data set that cannot be renamed using IEHPROGM
or TSO RENAME because of the above restrictions, copy the data set
(using IEHMOVE) to one having the new name.
When you rename a data set that is protected by a discrete profile, RACF makes the following changes
to the profile:
- If you do not have the OPERATIONS attribute (or
group-OPERATIONS with the restrictions it carries) and the new name
indicates a user data set (that is, the high-level qualifier is a
user ID), the access list for the data set remains the same, but the
profile is changed to show you as the owner.
If you have the OPERATIONS
attribute (or group-OPERATIONS with the restrictions it carries),
the user whose user ID is the high-level qualifier of the renamed
data set becomes the owner.
In both cases, the profile changes
to show the current connect group as the one under which the data
set was renamed.
- If you have the GRPACC attribute, and the high-level qualifier of the old data set name
is a group name, RACF removes
the group name from the access list.
Note: If the high-level qualifier
of the new data set name is also a group name, RACF adds that group name to the access list.
This action occurs even if the same group was removed in this step.
- If the new name indicates a group data set (the high-level qualifier
is a group name), RACF updates
the access list in the following way. Your user ID is added to the
list and given ALTER authority, unless your user ID is already in
the list. In this case, your authority remains unchanged.
If you
have the GRPACC attribute, the group indicated by the new name is
added to the list and given UPDATE authority. The profile is also
updated to show you as the owner of the data set (unless your authority
to rename the data set is through your OPERATIONS or group-OPERATIONS
attribute, in which case the owner is not changed) and to show the
current connect group as the one under which the data set was renamed.
Attention: No change occurs in generic profiles
applying to a data set being renamed. As a result of being
renamed, a data set might be protected by a different generic profile
from the one applied to the old name.