buffering-records.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline displays the contents of file: winston.txt, translated to uppercase, followed
3 by the lowercase translation of the file. The BUFFER stage prevents the pipeline from stalling. */
4
5 Address Rxpipe
6
7 'pipe (endchar ?)',
8 '< &installdrive:\&installpath\examples\input\winston.txt',
9 '| strip trailing', /* Trim off whitespace. */
10 '| a: locate', /* Route out null records. */
11 '| d: faninany', /* Read from both pipelines. */
12 '| b: fanout', /* Copy input to primary and secondary output streams. */
13 '| xlate upper', /* Translate to uppercase. */
14 '| c: fanin', /* Combine streams into single stream. */
15 '| console', /* Display records on the console. */
16 '?',
17 'a:', /* Start of second pipeline. */
18 '| specs x20 1', /* Replace a null record with a space. */
19 '| d:', /* Define secondary input for FANINANY. */
20 '?',
21 'b:', /* Define secondary output stream for FANOUT. */
22 '| xlate lower', /* Translate to lowercase. */
23 '| buffer', /* Buffer to prevent pipeline from stalling. */
24 '| literal', /* Write a blank record. */
25 '| c:', /* Define secondary input stream for FANIN. */
26
27 Say 'Hit Enter to close..'
28 Parse Pull
29
30 Exit 0
**** End of file ****
|