Library lists are used by the system to locate object.
You can show job's actual library list with command DSPLIBL
Display Library List
System: SERVER
Type options, press Enter.
5=Display objects in library
ASP
Opt Library Type Device Text
QSYS SYS System Library
QSYS2 SYS System Library for CPI's
QHLPSYS SYS
QUSRSYS SYS System Library for Users
MYLIB CUR System Administrator Development Librar
ICBSUTIL USR
USRTOOL USR Users Tools
QGPL USR General Purpose Library
QTEMP USR
Bottom
F3=Exit F12=Cancel F17=Top F18=Bottom
System part of Library is defined in QSYSLIBL system value - DSPSYSVAL SYSVAL(QSYSLIBL)
Display System Value
System value . . . . . : QSYSLIBL
Description . . . . . : System part of the library list
Sequence Sequence
number Library number Library
0
10 QSYS
20 QSYS2
30 QHLPSYS
40 QUSRSYS
Bottom
Press Enter to continue.
F3=Exit F12=Cancel
Current library, which is located before user libraries, is defined in user profile (Current library field)
Change User Profile (CHGUSRPRF)
Type choices, press Enter.
User profile . . . . . . . . . . > MYPROFILE Name
User password . . . . . . . . . *SAME
Set password to expired . . . . *NO *SAME, *NO, *YES
Status . . . . . . . . . . . . . *ENABLED *SAME, *ENABLED, *DISABLED
User class . . . . . . . . . . . *USER *SAME, *USER, *SYSOPR...
Assistance level . . . . . . . . *SYSVAL *SAME, *SYSVAL, *BASIC...
Current library . . . . . . . . *CRTDFT Name, *SAME, *CRTDFT
Initial program to call . . . . *NONE Name, *SAME, *NONE
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Initial menu . . . . . . . . . . MAIN Name, *SAME, *SIGNOFF
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Limit capabilities . . . . . . . *NO *SAME, *NO, *PARTIAL, *YES
Text 'description' . . . . . . .
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
You can change CUR part in job Library list with command CHGCURLIB
Change Current Library (CHGCURLIB)
Type choices, press Enter.
Current library . . . . . . . . Name, *CRTDFT
In field Current library you can type library name or use *CRTDFT value (in this case CUR library will be missing in job's Library list)
User part of Library list you can modify with command ADDLIBLE, RMVLIBLE, EDTLIBL
Edit Library List
System: SERVER
Type new/changed information, press Enter.
Sequence Sequence Sequence
Number Library Number Library Number Library
0 150 300
10 ICBSUTIL 160 310
20 USRTOOL 170 320
30 QGPL 180 330
40 QTEMP 190 340
50 200 350
60 210 360
70 220 370
80 230 380
90 240 390
100 250 400
110 260 410
120 270 420
130 280 430
140 290 440
More...
F3=Exit F5=Refresh F12=Cancel