The Toolkit command Operate on List (YOPRLST) gives you the ability to combine or divide lists. Lists can be combined together using set theory operations such as intersection and union. Such a capability is very powerful and can be used in many ways. Here are some examples:
YBLDOBJLST OBJ(A/*ALL) OBJLST(A) /* library A contents */
YBLDOBJLST OBJ(B/*ALL) OBJLST(B) /* library B contents */
YOPRLST LSTTYPE(*OBJ) LSTA(A)
LSTOPR(*DIFF) LSTB(B)
TOLST(C) IGNLIB(*YES) /* differences */
YDOCOBJLST LSTB(C) /* print */
YBLDOBJLST OBJ(A/*ALL) OBJLST(A)/* library A contents */
YBLDOBJLST OBJ(B/*ALL) OBJLST(B)/* library B contents */
YOPRLST LSTTYPE(*OBJ) LSTA(A)
LSTOPR(*INTERSECT) LSTB(B)
TOLST(C) IGNLIB(*YES) IGNCRTDTE(*NO)
IGNCHGDTE(*NO)/* find identical obj */
YDOCOBJLST LSTB(C)/* print*/
YBLDOBJLST OBJ(A/*ALL) OBJLST(A) /* library A contents */
YCVTOBJLST OBJLST(A) MBRLST(A)/* library a contents */
YBLDMBRLST FILE(B/Q*) MBRLST(B)/* src files in b contents */
YOPRLST LSTTYPE(*MBR) LSTA(A)
LSTOPR(*SUB) LSTB(QTEMP/B)
TOLST(QTEMP/C) IGNLIB(*YES) /* differences */
YDOCOBJLST LSTB(QTEMP/C) /* print */
|
Copyright © 2014 CA.
All rights reserved.
|
|