28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PIPE NOT<br />

Syntax<br />

NOT:<br />

NOT stage_specification<br />

Command Description<br />

The NOT stage changes the way output is passed to the primary and secondary<br />

output streams <strong>for</strong> those stages that pass part of their output to the primary output<br />

stream and part of their output to the secondary output stream. Such stages are<br />

called “selection stages” and examples are CHOP, TAKE, T<strong>OS</strong>TRING, and<br />

LOCATE. NOT causes the specified stage to execute as usual, except that input<br />

usually passed to the secondary output stream is passed to the primary output<br />

stream and the input usually passed to the primary output stream is passed to the<br />

secondary output stream. For example, specifying NOT T<strong>OS</strong>TRING /ABC/ passes<br />

all input up to, and including, the first message containing ABC to the secondary<br />

output stream, and passes all subsequent input to the primary output stream.<br />

Termination Conditions<br />

The NOT stage modifies the stage specified in stage_specification. Because it is a<br />

modifier stage, NOT does not have its own termination conditions. See the<br />

in<strong>for</strong>mation on the stage NOT is modifying <strong>for</strong> termination conditions.<br />

Operand Descriptions<br />

Usage Notes<br />

Examples<br />

stage_specification<br />

The stage specification being modified, including its operands.<br />

v The NOT stage does not invert the function of the specified stage. NOT<br />

SEPARATE does not become COLLECT. NOT SEPARATE discards all input,<br />

because SEPARATE keeps all input.<br />

v The STRIP stage is not considered a selection stage. NOT STRIP discards all<br />

input.<br />

v The stage NOT CHOP chop-operands keeps the part of each line that CHOP<br />

usually passes to the secondary output stream, if connected.<br />

v Be careful in considering the inversion of output <strong>for</strong> stage options. For example,<br />

when the NOINCL (no include) option is used with T<strong>OS</strong>TRING, the T<strong>OS</strong>TRING<br />

stage passes the message containing the matching string to the secondary output<br />

stream. If NOT is used with T<strong>OS</strong>TRING NOINCL, the matching message is<br />

passed to the primary output stream.<br />

v NOT is only supported <strong>for</strong> stages with two output streams.<br />

Example: Passing Messages After One Containing a Certain<br />

String<br />

The following example displays all data that follows the separator line, where<br />

T<strong>OS</strong>TRING normally stops.<br />

PIPE NOT<br />

Chapter 2. Pipeline Stages and Syntax 175

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!