Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
1058105
1058105
The rename (Rename) command in the UDM for IBM i LIB file system takes the following form:

<pre>
RENAME logical-name old-name new-name
</pre>
Panel
Html bobswift

Anchor
1058108
1058108
rename Command Requirements

...

Anchor
1058117
1058117
rename Command Forms

...


Name

Description

RENAME logical-name LIBRARY/FILE LIBRARY/FILE

Renames the file in the old portion with file name in the new portion. The library in the new name portion of the rename must match the library name in the old name portion.

RENAME logical-name FILE FILE

Renames the file in the current library in the old portion with the new file name in the current directory (library).

RENAME logical-name FILE LIBRARY/FILE

Renames the file in the current directory with the file name in the new portion. The library in the old name portion must be the current library.

RENAME logical-name LIBRARY/FILE FILE

Renames the file in the given library with the name of the file in the new portion, if the library name in the old portion is the same as the current library

RENAME logical-name LIBRARY/FILE(MEMBER) LIBRARY/FILE(MEMBER)

Renames the old member name with the new member name. Both the library and file name portions in the old and new member names must match

RENAME logical-name FILE(MEMBER) FILE(MEMBER)

Renames the member in the old name with the name of the member in the new name. The FILE portion of each name must be the same

RENAME logical-name FILE(MEMBER) LIBRARY/FILE(MEMBER)

Renames the member in the old name with the name of the member in the new name if the library specified in the old name is the same as the current library and both file name portions match

RENAME logical name LIBRARY/FILE(MEMBER) FILE(MEMBER)

Renames the member in the old name with the name of the member in the new name if the library specified in the new name is the same as the current library and both file name portions match