Hello Rob,
It looks like you are right. When testing, all stages end except the
colltest stage. Even more so, when gate severs the connections colltest
gets into a loop.
The stage reads:
Do while rc=0
readto input
<process>
end
When the gate stage kicks in, STARMON ends and so do the other stages.
Colltest however keeps on reading the input and very fast I must add (99%
cpu, 8000+ IO).
So I had to add a bit to the rexx stage:
Do while rc=0
streamstate input 0
if find('12 -4', rc) then rc = '12'
Else do
Readto input
<process>
end
end
Now the streamstate detects there is no inputstream, either not present o
r
no longer connected and sets rc to 12 if it is not already. Otherwise the
stage will process it's data. Now, when gate severs the inputstream the
colltest stage will end and so does the pipeline itself.
Thanks for your help.
Regards, Berry.