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

Syntax<br />

FANINANY:<br />

FANINANY<br />

Command Description<br />

The FANINANY stage reads from each connected input stream and passes the<br />

messages to a single output stream. Messages are passed in the order received<br />

without regard to their input stream. This is different from FANIN which passes all<br />

messages from a single input stream until it disconnects be<strong>for</strong>e passing messages<br />

from the next connected input stream.<br />

Streams<br />

For example, if FANINANY has two input streams, messages from both the<br />

primary and secondary input streams are passed to the output stream in the order<br />

received.<br />

Stream Type Number Supported<br />

Input 10<br />

Output 1<br />

Termination Conditions<br />

FANINANY terminates when all input streams disconnect or the output stream<br />

disconnects.<br />

Operand Descriptions<br />

This stage has no operands.<br />

Usage Notes<br />

Examples<br />

PIPE FANINANY<br />

v FANINANY delays the data stream flowing through the pipeline. If the output<br />

stream from FANINANY is used as an input stream to a second FANINANY, the<br />

messages passing through the first FANINANY are delayed.<br />

v To preserve the order of messages, code only one FANINANY stage in a<br />

complex pipeline.<br />

v FANINANY enables you to write output to a single stem variable from multiple<br />

places within a single pipeline.<br />

Example: Process a List of Names<br />

In this example, a list of names is read from a data set member. All individuals<br />

with the name SMITH are checked <strong>for</strong> the name TOMMY. All names containing<br />

SMITH and TOMMY result in TOMMY being changed to TOM. The modified<br />

names are input to FANINANY.<br />

Chapter 2. Pipeline Stages and Syntax 127

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

Saved successfully!

Ooh no, something went wrong!