Using the CMPOBJA command, let us assume you want to compare the objects defined to data group DG1. For simplicity, all candidate objects in this example are defined to library LIBX.
Table 58 lists all candidate objects on your system
Object |
Library |
Object type |
---|---|---|
ABC |
LIBX |
*FILE |
AB |
LIBX |
*SBSD |
A |
LIBX |
*OUTQ |
DEF |
LIBX |
*PGM |
DE |
LIBX |
*DTAARA |
D |
LIBX |
*CMD |
.
Next, Table 59 represents the object selectors based on the data group object entry configuration for data group DG1. Objects are evaluated against data group entries in the same order of precedence used by replication processes.
Order Processed |
Object |
Library |
Object type |
Include or omit |
---|---|---|---|---|
3 |
A* |
LIBX |
*ALL |
*INCLUDE |
2 |
ABC* |
LIBX |
*FILE |
*OMIT |
1 |
DEF |
LIBX |
*JOBQ |
*INCLUDE |
The object selectors from the data group subset the candidate object list, resulting in the list of objects defined to the data group shown in Table 60. This list is internal to MIMIX and not visible to users.
Object |
Library |
Object type |
---|---|---|
A |
LIBX |
*OUTQ |
AB |
LIBX |
*SBSD |
DEF |
LIBX |
*JOBQ |
Perhaps you now want to include or omit specific objects from the filtered candidate objects listed in Table 60. Table 61 shows the object selectors to be processed based on the values specified on the object selection parameter. These object selectors serve as an additional filter on the candidate objects.
Order Processed |
Object |
Library |
Object type |
Include or omit |
---|---|---|---|---|
1 |
*ALL |
LIBX |
*OUTQ |
*INCLUDE |
2 |
*ALL |
LIBX |
*SBSD |
*INCLUDE |
3 |
*ALL |
LIBX |
*JOBQ |
*OMIT |
The objects compared by the CMPOBJA command are shown in Table 62. These are the result of the candidate objects selected by the data group (Table 60) that were subsequently filtered by the object selectors specified for the Object parameter on the CMPOBJA command (Table 61).
Object |
Library |
Object type |
---|---|---|
A |
LIBX |
*OUTQ |
AB |
LIBX |
*SBSD |
In this example, the CMPOBJA command is used to compare a set of objects. The input source is a selection parameter. No data group is specified.
The data in the following tables show how candidate objects would be processed in order to achieve a resultant list of objects.
Table 63 lists all the candidate objects on your system
Object |
Library |
Object type |
---|---|---|
ABC |
LIBX |
*FILE |
AB |
LIBX |
*SBSD |
A |
LIBX |
*OUTQ |
DEFG |
LIBX |
*PGM |
DEF |
LIBX |
*PGM |
DE |
LIBX |
*DTAARA |
D |
LIBX |
*CMD |
.
Table 64 represents the object selectors chosen on the object selection parameter. The sequence column identifies the order in which object selectors were entered. The object selectors serve as filters to the candidate objects listed in Table 63.
The last object selector entered on the command is the first one used when determining whether or not an object matches a selector. Thus, generic object selectors with the broadest scope, such as A*, should be specified ahead of more specific generic entries, such as ABC*. Specific entries
Sequence Entered |
Object |
Library |
Object type |
Include or omit |
---|---|---|---|---|
1 |
A* |
LIBX |
*ALL |
*INCLUDE |
2 |
D* |
LIBX |
*ALL |
*INCLUDE |
3 |
ABC* |
LIBX |
*ALL |
*OMIT |
4 |
*ALL |
LIBX |
*PGM |
*OMIT |
5 |
DEFG |
LIBX |
*PGM |
*INCLUDE |
should be specified last.
Table 65 illustrates how the candidate objects are selected.
Sequence Processed |
Object |
Library |
Object type |
Include or omit |
Selected candidate objects |
---|---|---|---|---|---|
5 |
DEFG |
LIBX |
*PGM |
*INCLUDE |
DEFG |
4 |
*ALL |
LIBX |
*PGM |
*OMIT |
DEF |
3 |
ABC* |
LIBX |
*ALL |
*OMIT |
ABC |
2 |
D* |
LIBX |
*ALL |
*INCLUDE |
D, DE |
1 |
A* |
LIBX |
*ALL |
*INCLUDE |
A, AB |
Table 66 represents the included objects from Table 65. This filtered set of candidate objects is the resultant list of objects to be processed by the CMPOBJA command.
Object |
Library |
Object type |
---|---|---|
A |
LIBX |
*OUTQ |
AB |
LIBX |
*SBSD |
D |
LIBX |
*CMD |
DE |
LIBX |
*DTAARA |
DEFG |
LIBX |
*PGM |