On Fri, 26 Mar 2010 22:52:30 +0100, Rob vdH wrote:
> (end \)
> ..
> | o: fanout
> | i: faninany
> | printmc
> \ o:
> | chop 0
What was I -just- saying about CHOP 2147483647 to generate a null record
after each input record? (Of course, if you know how long your input
records might be, you don't have to use the largest number on earth--it
can just be CHOP 80 or 132 or whatever's appropriate.)
If your null records don't come from the same source as the input file--
if, say, you're closing the file at specified times--then you'll need to
merge them into the input file and then split them out again to
generating the CLOSE commands, to make sure that you don't write any more
before issuing the CLOSE.
(end \) ... /* input file here */
| c: count lines /* send EOF to GATE to stop timer */
| i: faninany
| o: fanout
| printmc
\ c:
| g: gate
\ literal +10
| dup *
| g:
| delay
| chop 0
| i:
\ o:
| nlocate
| insert "CLOSE PRT"
| cp
¬R