Fan In Any

Filter:

FANINANY

Syntax:

FANINANY

Operands:

none

Functional Description:

Use the FANINANY stage to combine two input streams into a single output stream. FANINANY reads records from both specified input streams and copies the records from each input stream to its primary output stream, if it is connected.

FANINANY reads from it primary input stream until either EOF or there are no records currently available, then it switches to reading from its secondary input stream until the same conditions occur. If the primary input stream has not reached EOF then it again reads records from the primary, and again to the secondary input stream. This cycle is repeated until both the primary and secondary inputs have exhausted their records.

Secondary Input/Output:

INPUT

Synonyms:

none

Usage Notes:

The records are interspersed between the input streams.

Records from the secondary input stream may become delayed.


JAVA Pipelines

Cullen Programming logo