Samples of INCLUDE EXCLUDE and OUTPUT subcommands

The following table shows examples of the UNLOAD command combined with the INCLUDE, EXCLUDE, and OUTPUT subcommands and the resulting selected segments.

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.


This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Comments