How to Rename a Library after Testing
Step-by-step guide
After you've completed testing a new version in your environment, you will need to free up the production name so that you can move the newly tested version into production.
Remove all PKWARE libraries from your library list.
Rename the current Production library, to free up its name:
- CODE
RNMOBJ OBJ(ProdLIB) OBJTYPE(*LIB) NEWOBJ(ProdOLD)
Rename the Test library to the Production library name:
CODERNMOBJ OBJ(TestLIB) OBJTYPE(*LIB) NEWOBJ(ProdLIB)
Add
this
library (with its
new
name) to your list:
ADDLIBLE ProdLIB
Reset the PK Internal Pointers:
CODECALL PKZSETLIB ProdLIB