Previous Topic: Convert Object ListsNext Topic: Converting Database Relations into an Object List


Converting Object Lists to Member Lists

A list of objects may be converted into a list of source members. The significance of this will be become apparent when you recall that the Toolkit command generic Create Objects (YCRTOBJ) can work from a specified member list.

Recompile a list of objects, selected by name, owner, or indeed any of the object selection criteria such as size or system release level which are available with the Toolkit filter functions. Having built and filtered such a list, use the Toolkit command Convert Object List (YCVTOBJLST) to create a member list from it containing the names of the source members of all the objects in the given object list. The member list can then be fed straight into the Create Object command (YCRTOBJ).

For example, the effect of the following four commands would be to submit recompiles of everything beginning with FRED in library QGPL:

YBLDOBJLST OBJ(QGPL/FRED*) OBJTYPE(*ALL) OBJLST(GEORGE) /*bld*/
YFLTOBJLST DATE(*CRT *GT 01/01/87) OBJLST(GEORGE) /*filter*/
YCVTOBJLST OBJLST(GEORGE) MBRLST(GEORGE) SRCFILE(SAUCE/*QDFTSRC)
 YCRTOBJ OBJLIB(NEW) MBRLST(GEORGE) SRCFILE(*MBRLST) JOBQ(QGPL/QGMR) JOBD(QBATCH) /*recompile */

This can be shown in a diagram as follows: