• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3695
  • Last Modified:

I need to rename a library on my system .How would I do that?

I need to rename a library on my system.  The reason I need to rename it is so that I can restore a library off a tape and still have my current library saved but as something else?  How would I rename a library?
0
patbrowne03
Asked:
patbrowne03
1 Solution
 
HelixirCommented:
With STRPDM, option 1 manage library.

You'll notice the option 7 to rename your library !!

Just to let you know that if the Lib is in use (even by a Library List) you wont be able to rename it !!

You know that you could restore your library from your tape on another name !!

Or you could do WRKLIB Mylib  and chose to copy it, it could resolve a lock problem !!
0
 
dedy_djajapermanaCommented:
To rename a library:
RNMOBJ OBJ(OLDNAME) OBJTYPE(*LIB) NEWOBJ(NEWNAME)

It is better to RESTORE the library into a different name:
RSTLIB SAVLIB(LIBNAME) DEV(TAP01) RSTLIB(NEWNAME)
where LIBNAME is the library name as saved on tape, and NEWNAME is the library name in the system upon restore


0
 
Mind_nlCommented:
STRPDM option 1

use WRKOBJLCK OBJ([library name]) OBJTYPE(*LIB) to see who is locking the library.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now