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 TAKE<br />

PIPE TAKE<br />

Syntax<br />

TAKE:<br />

TAKE<br />

FIRST<br />

LAST<br />

1<br />

count<br />

MSGS<br />

LINES<br />

Command Description<br />

Use the TAKE stage to specify the number of messages or lines that are passed to<br />

the primary output stream (if any). All messages or lines in excess of this number<br />

are passed to the secondary output stream. If either primary or secondary stream is<br />

disconnected, messages that would have been passed to the particular stream are<br />

discarded.<br />

Streams<br />

Stream Type Number Supported<br />

Input 1<br />

Output 2<br />

Termination Conditions<br />

TAKE terminates when the input stream or both output streams are disconnected.<br />

Operand Descriptions<br />

Usage Notes<br />

234 <strong>Programming</strong>: <strong>Pipes</strong><br />

count<br />

Specifies the maximum number of messages or lines to be passed to the<br />

primary output stream. Valid values are in the range of 0 - 10,000,000. The<br />

default is 1.<br />

FIRST|LAST<br />

Specifies whether the messages or lines to be passed to the next stage are the<br />

first count messages or the last count messages. The default is FIRST.<br />

LINES<br />

Specifies that the count is made of individual lines without regard to their<br />

grouping as multiline messages. If the indicated count is satisfied during<br />

processing of a multiline message and a secondary output is connected, then<br />

the AIFR data <strong>for</strong> the multiline message is replicated and passed to the<br />

secondary output, along with the remaining lines <strong>for</strong> that message.<br />

MSGS<br />

Specifies that the count indicated applies to whole messages, which can consist<br />

of zero or more lines. This is the default.<br />

v TAKE cannot be the first stage.<br />

v TAKE LAST delays the stream. This means that TAKE LAST produces no output<br />

until the previous stage disconnects its output stream. This causes delayed<br />

processing by stages following TAKE LAST.

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

Saved successfully!

Ooh no, something went wrong!