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

PIPE PICK<br />

Syntax<br />

PICK:<br />

►<br />

PICK position.length =<br />

¬=<br />

<<br />

<br />

>=<br />

PAD '00'X<br />

PAD hexstring<br />

/string/<br />

position.length<br />

/string/<br />

Command Description<br />

The PICK stage selects messages satisfying a given criteria and passes them to the<br />

primary output stream. Messages that do not meet the specified criteria are passed<br />

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

Streams<br />

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

If the input message is a multiline message, only the first line is examined. If<br />

selected, the entire multiline message is passed to the primary output stream.<br />

The selection criteria is specified by giving a position.length within the message line<br />

to be compared against:<br />

v Another position.length within the message line or<br />

v A /string/<br />

If one of the two strings being compared is shorter than the other, the shorter<br />

string is padded with the PAD character be<strong>for</strong>e comparing the two strings.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 2<br />

Termination Conditions<br />

PICK terminates when the input stream or both output streams disconnect.<br />

Operand Descriptions<br />

= Selects the message if the two strings being compared are equal.<br />

¬= Selects the message if the two strings being compared are not equal.<br />

< Selects the message if the first string being compared is less than the second<br />

string.<br />

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

Saved successfully!

Ooh no, something went wrong!