Avoid having explicit references to library names in programs and elsewhere, as this means that libraries cannot be renamed without a programming change.
Use the PRDLIB facility on menus and commands to set the library list to include any necessary application execution objects, such as programs and device files. Only set the PRDLIB on the live version of objects.
Use the CURLIB facility to set the library needed to find application data objects, such as database files and data areas.
If it is necessary to refer to a library name explicitly, you should retrieve the library name. The best technique is to retrieve the library containing a named object, for example using the OS/400 Retrieve Object Description (RTVOBJD) command:

| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |