Previous Topic: Library TypesNext Topic: Using Explicit References to Libraries


Use of Libraries

Whenever objects, especially programs or files, are referred to by name in programs, the names should never be qualified names.

For instance:

If this rule is not obeyed, the library list cannot be used to find objects. It will require a programming change to use a different set of data, or a different version of a program. Apart from losing one of the most powerful capabilities of OS/400, it will be very difficult to establish a test environment that is as close as possible to the live environment.

Where you need to specify a library, for example on a create command, use the current library *CURLIB as a default.

The CA 2E Toolkit utilities include library list manipulation facilities that can help avoid the explicit coding of library names.

For more information on user access aids, refer to the CA 2E Toolkit Concepts Guide. For the Toolkit IBM i Change Library List (YCHGLIBL) and Change Job Description Library List (YCHGJOBD) commands, refer to the Toolkit Reference Guide.