Selections involving union, intersect, and exclude merge two lists of objects, usually (but not necessarily) supplied in the form of classes:
|
Examples |
Statements |
|---|---|
|
Example 1: Union Statement |
The following union statement merges the lists of files in the two classes and selects all the files that appear in both lists: BUSPROJECT UNION FUNPROJECT |
|
Example 2: Union Statement |
The following union statement merges the lists of operating systems in the two classes and selects all the operating systems that appear in the list, in this case "SUNOS", "SOLARIS", "LINUX", "WINDOWS", "NETWARE4": NETW1 UNION NETW2 |
|
Example 1: Intersect Statement |
The following intersect statement selects only the files common to both classes; in this case, the *.HTM files: BUSPROJECT INTERSECT FUNPROJECT |
|
Example 2: Intersect Statement |
The following intersect statement selects only the operating systems common to both classes, in this case, the LINUX: NETW1 INTERSECT NETW2 |
|
Example 1: Exclude Statement |
The following exclude statement selects the files that appear in the class BUSPROJECT and that do not appear in FUNPROJECT. In this example, these are the *.DOC, *.XLS, and *.MDB files: BUSPROJECT EXCLUDE FUNPROJECT |
|
Example 2: Exclude Statement |
The following exclude statement selects the files that appear in the class FUNPROJECT not including those that appear in BUSPROJECT. In this example, these are the *.AVI and *.WAV files: FUNPROJECT EXCLUDE BUSPROJECT |
|
Example 3: Exclude Statement |
The following exclude statement selects the operating systems that appear in the class NETW1 and that do not appear in NETW2. In this example, these are the "SUNOS" and "SOLARIS": NETW1 EXCLUDE NETW2 |
|
Example 4: Exclude Statement |
The following exclude statement selects the operating systems that appear in the class NETW2 not including those that appear in NETW1. In this example, these are "WINDOWS" and "NETWARE4": NETW2 EXCLUDE NETW1 |
In all cases, you can replace the class definitions (BUSPROJECT and FUNPROJECT on the one hand, NETW1 and NETW2 on the other) with lists of files and operating systems that constitute the classes.
|
Copyright © 2016 CA Technologies.
All rights reserved.
|
|