Purpose, Argument, Streams, Usage, Examples, Related
┌─1───────────────┐ >>──BUFFER──┬─────────┬──┼─────────────────┼─────────────────────────────────────────>< └─REVerse─┘ └─sets─┬────────┬─┘ └─string─┘
Use the BUFFER stage without an argument to accumulate all the records (including null
records) from its primary input stream, not passing any of the records until end-of-file
is reached on the primary input stream. When BUFFER reaches end-of-file on its primary input
stream, it writes all the records to its primary output stream.
Use the BUFFER stage
with an argument to accumulate input records until a null record is read or end-of-file is reached.
BUFFER writes this set of input records sets number
of times. If you specify a number greater than one, a null record or a record containing the
specified string is written between the copies of
the set of input records. Then BUFFER copies the null input record or the specified
string to its primary output stream. This process
continues until BUFFER reaches end-of-file on its primary input stream and all sets of input records have been written.
**** Top of file **** Address Rxpipe
'pipe console eof /stop/ '| buffer rev 3 /------/' '| > fruit.txt'
Exit 0 **** End of file ****
console:
console(0): 'stop' to end. console(0): ? Apple console(0): ? Orange console(0): ? Banana console(0): ? stop
fruit.txt
...|...+....1....+....2....+....3.... **** Top of file **** Banana Orange Apple ------ Banana Orange Apple ------ Banana Orange Apple **** End of file ****