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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PIPE T<strong>OS</strong>TRING<br />

PIPE T<strong>OS</strong>TRING<br />

Syntax<br />

Synonyms<br />

T<strong>OS</strong>TRING:<br />

T<strong>OS</strong>TRING<br />

ALL<br />

FIRST<br />

LAST<br />

INCL<br />

NOINCL<br />

Stage Name Synonym<br />

T<strong>OS</strong>TRING T<strong>OS</strong><br />

▼ /string/<br />

position.length BLANK<br />

NULL<br />

Command Description<br />

The T<strong>OS</strong>TRING stage enables you to select messages in the input stream up to,<br />

and including, the message containing the text that matches the delimited string<br />

that you specified. Selected messages are passed to the primary output stream.<br />

Those not selected are passed to the secondary output stream, if connected. You<br />

can specify up to 40 delimited strings, each with an optional position and length<br />

pair, to limit the column range of the search.<br />

Streams<br />

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

Stream Type Number Supported<br />

Input 1<br />

Output 2<br />

Termination Conditions<br />

T<strong>OS</strong>TRING terminates when the input stream or both output streams disconnect. If<br />

a secondary output stream is not defined, T<strong>OS</strong>TRING terminates when it matches<br />

its target.<br />

Operand Descriptions<br />

ALL|FIRST|LAST<br />

This keyword affects processing only <strong>for</strong> MLWTOs. Specifies whether the first,<br />

the last or all lines of multiline messages are compared. The default is ALL.<br />

INCL<br />

Include the matched message in the primary output stream. This is the default.<br />

NOINCL<br />

Do not include the matched message in the primary output stream.<br />

position.length<br />

Specifies the character position in each message where searching begins, and<br />

the length of the search. If you specify a length of *, the remainder of the<br />

message is searched. If you do not specify a position.length, the entire message

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

Saved successfully!

Ooh no, something went wrong!