IBM Support

Renaming Directory Entries (RNMDIRE) with Ownership of Objects

Troubleshooting


Problem

This document shows you how to rename directory entries with ownership of objects.

Resolving The Problem

Many times, users will migrate their system to a new release or a new system. When they do this, they will sometimes have a different name than the current system name. Another example of this is when users change the current system name of their operating system.

When they do this, they are causing an issue where Directory Entries (WRKDIRE) that are currently on the system refer to the old system name. The user wants to change the Address and/or System Name of the Directory Entry (DIRE) to make this work with the new system name that they have assigned.

When the user uses the WRKDIRE command, presses the Enter key, and types Option 7 in front of the directory entry to be changed, the screen is shown with the parameters to change. When completed, the user presses the Enter key. Error message CPF897F is issued indicating that the directory entry cannot be changed for one or more reasons.

To complete the change, the system name must be changed to the system name in the directory entry, or do one of the following:

Option 1

On the operating system command line type each of the following commands, and press the Enter key:

1.ENDSBS SBS(QSNADS) OPTION(*IMMED)
2.ENDSBS SBS(QSERVER) OPTION(*IMMED)
3.ENDTCPSVR *SMTP
4.ENDMSF *IMMED
5.ENDTCPSVR *POP (this is the TCP POP Server)
6.ENDHOSTSVR *ALL

Then, use the WRKOBJLCK OBJ(QUSRSYS/QAOKL03A) OBJTYPE(*FILE) command. At this time, there may not be any object locks on this object. If so, proceed with the renaming of the directory entries. Once all of this is completed, on the operating system command line type each of the following commands and press the Enter key:

1.STRSBS SBSD(QSNADS)
2.STRSBS SBSD(QSERVER)
3.STRTCPSVR *SMTP
4.STRMSF
5.STRTCPSVR *POP (this is the TCP POP Server)
6.STRHOSTSVR *ALL

Option 2
1.On the operating system command line, type the following:

WRKOBJOWN

Press F4 to prompt. Then, type the USER PROFILE to display the objects owned by that user profile.
2.Type Option 9 in front of each of the objects, and change the ownership to another user profile.
3.To change required fields, on the operating system command line type the following:

CHGDIRE

Press the Enter key.
4.Change the object owner of the objects listed in Step 2 back to this user profile again.

Option 3
1.From the console of the operating system, place the system into a restricted state.
2.Change the directory entries.
3.Bring the subsystems back up and back online.

When the user has changed the system name or migrated to a new system with a different name, there will most likely be many directory entries that must be changed. All directory entries can be changed at one time with a program created by the Work Management team.

Program to Rename Directory Entries
http://www-01.ibm.com/support/docview.wss?uid=nas8N1017586

We have also seen instances where the RNMDIRE fails and the command WRKNAMSMTP shows an entry for that user. If this is deleted. RNMDIRE works fine.

If further assistance is needed with the above options, you should contact the Rochester Support Center at 1-800-IBM-SERV, and select the appropriate option.

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-SNA","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

24095156

Document Information

Modified date:
18 December 2019

UID

nas8N1017271