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

Syntax<br />

DIVERT:<br />

DIVERT<br />

COLLECT<br />

Command Description<br />

The DIVERT stage writes messages received on its primary input to either its<br />

primary output or its secondary output, depending on what is received on its<br />

other input streams. When a message is available on the secondary input, the<br />

message from the primary input is written to the primary output. Otherwise, when<br />

a message is available on the tertiary input, the message from the primary input is<br />

written to the secondary output. Any message read from the secondary or tertiary<br />

input is discarded, unless COLLECT is specified.<br />

Streams<br />

Stream Type Number Supported<br />

Input 3<br />

Output 2<br />

Termination Conditions<br />

DIVERT terminates when any of the following conditions occur:<br />

v When its primary input becomes disconnected.<br />

v When both its secondary and tertiary inputs become disconnected.<br />

v When both its primary and secondary outputs become disconnected.<br />

Operand Descriptions<br />

Usage Notes<br />

COLLECT<br />

Specifies that the trigger message received on the secondary or tertiary stream<br />

is concatenated with the message being written to the output.<br />

v DIVERT requires at least two input streams.<br />

v When DIVERT has only two input streams, it acts as a gating function by<br />

enabling the primary input to pass to the primary output as messages become<br />

available on the secondary input. In this case, no message is passed to the<br />

secondary output.<br />

Examples<br />

For example usage, see sample CNMSRPLY.<br />

PIPE DIVERT<br />

Chapter 2. Pipeline Stages and Syntax 71

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

Saved successfully!

Ooh no, something went wrong!