Previous Topic: Using Change Control Facilities CommandsNext Topic: Example 2


Example 1

You can use the following set of commands to compare model objects within a model at two different times; for example, before and after a development project:

  1. Use the Build Model List (YBLDMDLLST) command to create a list of all objects in the model by specifying the All Objects list (*ALLOBJ) as input and a named model object list as output.

YBLDMDLLST OBJNAM(*ALLOBJ)+
 MDLLST(list-name1)

The output list contains information about each object that existed in the model at the time you ran this command; namely, each list entry contains the Create date and time and the Change date and time of the corresponding model object.

At some later stage in the development cycle you can build another list of all model objects and compare the new list with the original list as shown in the following steps.

  1. Build a new list of all objects in the model, specifying another model object list as output.

YBLDMDLLST OBJNAM(*ALLOBJ)+
 MDLLST(list-name2)

  1. Compare this list with the original list and create a third model object list containing the differences between the two input model object lists.

YOPRMDLLST MDLLSTA(list-name1)+
 LSTOPR(*DIFF) MDLLISTB(list-name2)+
 TOMDLLST(list-name3)+
 OPRTYPE(*OBJSGT)