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.

MAX<br />

Specifies setting a limit <strong>for</strong> the maximum number of messages (not lines). This<br />

option is used with the number variable.<br />

number<br />

Specifies the maximum number of input messages that are to be collected.<br />

pos.len<br />

Specifies where, within each line of input, COLLECT attempts to find the<br />

specified delimited string. You can specify the letter S <strong>for</strong> the length if the<br />

specification is followed by a delimited string. The COLLECT stage replaces<br />

the letter with the length of that delimited string.<br />

Usage Notes<br />

PIPE COLLECT<br />

NOT<br />

When specified on the first string, indicates that the selection begins if the<br />

string is not found. When specified on the second string, indicates that the<br />

selection ends if the string is not found.<br />

ONCHANGE<br />

Specifies that when the message being examined is different from the previous<br />

message in the range indicated by pos.len, then any previously accumulated<br />

lines are output and a new multiline message is begun with the message being<br />

examined. Only the first line of a multiline input message is examined.<br />

/string/<br />

Specifies the character string <strong>for</strong> which to search. If BREAK is specified, the<br />

delimited string is required; otherwise, it is not allowed. You can specify<br />

/string/ up to 40 times.<br />

The first nonblank character encountered after BREAK AT, BREAK BEFORE, or<br />

BREAK AFTER is the delimiter which establishes the boundary of the text<br />

string used by the stage. The delimited string ends when the same character is<br />

encountered a second time.<br />

BLANK<br />

Specifies that the character string <strong>for</strong> which to search contains only blanks. The<br />

search occurs in the range specified by the pos.len parameter, but if the data<br />

contains only blanks, a match is recognized regardless of the length specified.<br />

NULL<br />

Specifies that the stage is to search <strong>for</strong> no data whatsoever, that is, null data<br />

(not even blanks). This means that a match is recognized only when the data is<br />

shorter than the number specified <strong>for</strong> position in the pos.len parameter.<br />

v COLLECT cannot be a first stage.<br />

v Each of the COLLECT parameters (except <strong>for</strong> FREEFORM) specifies a condition<br />

to stop collecting. With the addition of the MAX parameter, a single COLLECT<br />

stage can have two such conditions. When either condition is met, a multiline<br />

message is produced and COLLECT starts again.<br />

v If you use the COLLECT stage following a STEM stage, see the description of<br />

the COLLECT operand of the STEM stage <strong>for</strong> a more efficient alternative.<br />

v The COLLECT stage directly affects the way that messages in the pipeline are<br />

displayed, logged, and searched by other stages. It can be used to improve the<br />

readability of messages when displayed to the operator console.<br />

v The COLLECT stage delays the stream. This means that subsequent stages<br />

cannot process data until COLLECT completes its collection of a multiline<br />

Chapter 2. Pipeline Stages and Syntax 41

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

Saved successfully!

Ooh no, something went wrong!