Bob Cronin wrote:
> send them to the faninany preceding the lookup. When I do that with
> copy or elastic, the pipe stalls. Ideas?

You need something to sever LOOKUP's primary input at EOF.  As long as
it's still feeding back to itself, it can never terminate.  The simplest
way I've come up with is to feed the alternate output of COUNT to GATE. 
That avoids making any new copies of records with FANOUT, or delaying
any records with TAKE LAST.

Also, given the possibility that you might reprocess a record more than
once, you want FANINTWO rather than FANINANY, so that the next record
can't be read until you're done with this one.

  (end ?)
    end: fanin
  | stop: gate
  ? ...
  | count: count lines
  | feedback: fanintwo
  | stop:
  | match: lookup ...
  ? ...
  | match:
  | locate ...
  | copy
  | feedback:
  ? count:
  | end:

¬R

Reply via email to