Beruflich Dokumente
Kultur Dokumente
When you need to use any system object or an object that you have created, the system usually searches for the object in your library list (unless the job is qualified).
Examples of content
QSYS QHLPSYS QUSRSYS QPDA QRPG JSMITH (created by programmer J. Smith)
Product (none, 1, or 2)
Current (1 only)
You can determine which libraries will be placed in the system portion of your library list by looking at the system value QSYSLIBL.
The operating system inserts a product library when the library is needed for some task a user has requested. Example: If a user requests compilation of an RPG program, the library containing the necessary translator programs, QRPG, is inserted as a product library during the compile process and then removed when the process is finished; this adding and removing of appropriate product libraries is automatic.
Mastering the AS/400, Third Edition, author Jerry Fottral
6
The current library is: A specially designated user library which is usually assigned in the user profile. A specified current library follows the product library in the library list. The current library is significant because it is searched before other user libraries when an object is requested.
Mastering the AS/400, Third Edition, author Jerry Fottral
7
The user library list: Contains libraries that organize programs, screens, data files, and application code that users need Can contain up to 25 library names* Can be customized for each user. Can be customized by using a special job description, by running an initial start-up program at sign-on, or by executing CL commands when needed as the job is run
Mastering the AS/400, Third Edition, author Jerry Fottral
8
Several IBM-supplied libraries, which begin with the letter Q, are included in the user list. For example, QGPL, QTEMP. (QTEMP is actually a temporary User library only available during a given session and not accessible to any other User).
Mastering the AS/400, Third Edition, author Jerry Fottral
9
Regarding the relationship among objects, libraries, and AS/400 Library List: When objects are created, they must be "placed in" (associated with) a library. This association is logical -- object storage locations are assigned by the system; objects are not physically stored within a library area on disk.
10
Every individual user on the system may have a unique, personally tailored library list. More commonly, groups of users with similar work requirements have the same or a similar library list with, perhaps, only the current library being unique.
12
13
Remember: Contents of a library list may differ from one (users) job to another.
Mastering the AS/400, Third Edition, author Jerry Fottral
14
Week 4 The CHGCURLIB Command Among other commands, the CHGCURLIB (Change Current Library) command lets you specify a different library to occupy the spot of the current library in your library list. The only required parameter value for this command is the name of the library that will become the new current library.
15
Important when using the CHGCURLIB command: The old current library is not added to the user part of the list. It is removed from the list altogether. For this reason, this command would not be best if you wanted to change the relative order of libraries already in the user part of the library list.
16
The ADDLIBLE (Add Library List Entry) command lets you add a new library to the userlibrary portion of the library list. This command affects only the user part of the library list. If you needed to remove a single library from the user library list, use RMVLIBLE (Remove Library List Entry) command, specifying by name the library to be removed.
Mastering the AS/400, Third Edition, author Jerry Fottral
17
The CHGLIBL (Change Library List) command lets you add, remove, or change the order of libraries in your user library list and change the current library if so desired. Remember: The system searches the library list from top to bottom, so you might need to move a library higher in the list.
Mastering the AS/400, Third Edition, author Jerry Fottral
18
Each library name is an entry field that can be typed over (to replace with a different library name) or add new libraries by entering a plus (+) sign in the + for more values field. Without re-typing, you can insert a new user library into the list just before an existing library by typing a greater than symbol (>) over the first letter of the existing library name and then pressing the Field exit key followed by the Enter key.
Mastering the AS/400, Third Edition, author Jerry Fottral
19
To change the current library, type over the Current library value displayed on the screen and replace it with the desired library name.
The CHGLIBL command requires you to re-type names to change the order of libraries, but you can use the command from within a CL program both interactively as well as batch.
20
This command is the easiest to use for changing the order of user libraries in an interactive job. You dont need to re-type library names -- just change their sequence numbers. When you press Enter, the command is executed, changing the order of the libraries.
Mastering the AS/400, Third Edition, author Jerry Fottral
21