I'm looking up items in a series of files.  For each file, I have a REXX
stage building an ELASTIC feedback loop to chase down chains of
references, and unresolved references get passed on to look up in the
next file.  Duplicate references are weeded out with LOOKUP AUTOADD.
Since the later files in the chain might refer back to the earlier ones,
I figured I'd just feed the last unresolved output right back up to the
top with another ELASTIC to start over in the first file.  But it never
got there!  The whole mess terminated before anything could be fed back
to the top.

I guess that's slightly better than the alternative, which would be to
stall right away because the second ELASTIC in the chain can't read
anything on its alternate until EOF on the first one.  If I replace all
the ELASTICs with ELASTIC|FANINANY, I actually do get the output I want,
but then of course nobody ever sees EOF and the whole thing stalls.  If
I save the output and run the whole pipeline again, I lose what's saved
in LOOKUP AUTOADD each time and wind up chasing down a lot of duplicate
references that I then just discard.  Have I missed some way to get this
right?

¬R

Reply via email to