Previous Topic: Storing Library ListsNext Topic: Changing Library Lists


Creating Library Lists

You can build library lists from either a specified list of libraries, from the current job’s library list, or from the initial library list of a specified job description. Create library lists using the command Build Library List (YBLDLIBLST).

For instance, the following command would build a library list called FRED containing five library names: QTEMP, QGPL, Y1SY, QRPG, and current library FREDLIB.

YBLDLIBLST LIBLST(FRED) LIBL(QTEMP QGPL Y1SY FREDLIB QRPG) CURLIB(FREDLIB) TEXT(‘Library list for FRED’)

You can synchronize maintenance of an initial library list with a library list you are building. For example, using YBLDLIBLST to build a library list FRED in QGPL from the current job’s library list and to ensure that the initial library list (INLLIBL) of job description QBATCH in FREDLIB is synchronized, you would use the following command:

YBLDLIBLST LIBLST(QGPL/FRED) LIBL(*JOB) LSTTYPE(*INLL)  CURLIB(*JOB) LSTJOBD(FREDLIB/QBATCH) TEXT(‘Library list for FRED’)