Previous Topic: Building Lists from Existing ItemsNext Topic: Editing Lists


Building Lists from Named Items

For object and member lists there is another way of adding entries to lists: you may add items to lists one by one using the Toolkit commands Add Object List Entry (YADDOLE) and Add Member List Entry (YADDMLE). For example, to add an entry for a program FRED to list PGMS:

YADDOLE OBJ(FRED) LIB(QGPL) OBJTYPE(*PGM) OBJLST(QTEMP/PGMS)

For example, to add an entry for a member FRED of source type CL in file QCLSRC:

YADDMLE MBR(FRED) LIB(QGPL) FILE(QCLSRC) SEUTYPE(RPG) MBRLST(QTEMP/PGMS)

The Add List Entry commands are primarily intended for use in your own CL programs. They can be useful when you wish to build a list of items that do not yet exist.