Samples of INCLUDE EXCLUDE and OUTPUT subcommands
These examples use the segment hierarchy shown in Conditional criteria.
Command set | Selected segments | Output segments |
---|---|---|
UNLOAD IAREA=ALL no INCLUDE, EXCLUDE, or OUTPUT subcommands specified | All roots and their dependent segments are selected. | A segment record is written for each selected segment. |
EXCLUDE SEGMENT=SEGA | No segments are selected. | Table cell |
EXCLUDE SEGMENT= SEGA INCLUDE SEGMENT=SEGB | No segments are selected. (Excluding a parent segment excludes all of its dependent segments.) | No segment records are output. |
EXCLUDE SEGMENT=SEGB | SEGA, SEGE, SEGF, and SEGG are selected. | A segment record is written for each selected segment. |
INCLUDE SEGMENT=SEGA, WHERE=(selection criteria) | All SEGA segments that meet criteria and their dependents are selected. | A segment record is written for each selected segment. |
EXCLUDE SEGMENT=SEGB EXCLUDE SEGMENT=SEGE OUTPUT SEGMENT=SEGG | SEGA and SEGG are selected. | All SEGA and SEGG segments selected are written. |
OUTPUT SEGMENT=SEGG | All roots and their dependent segments are selected. | All segments are written. |
INCLUDE SEGMENT=SEGB, WHERE=(selection criteria) EXCLUDE SEGMENT=SEGC OUTPUT SEGMENT=SEGD, WHERE=(selection criteria) | All SEGA, SEGE, SEGF, and SEGG segments are selected. Only SEGB (and SEGD children) segments that meet the INCLUDE selection criteria are selected. | All SEGA, SEGE, SEGF, and SEGG segments are written. All SEGB (and SEGD children) segments that meet the selection criteria are written. |
Comments
Log in or register to comment.