On Fri, 16 Apr 2010 08:51:26 -0500, Mark Wheeler wrote: >signal on error > >do forever > 'PEEKTO input_record' /* Peek at the input record */ > if input_record = test_value then /* Simplistic */ > > do > 'SELECT OUTPUT 0'; 'OUTPUT' input_record
You're killing the stage as soon as you see a nonzero return code, but you've never tested whether the primary output is connected, so it dies as soon as you write to it. You can do just the same as you did for the alternate, testing with STREAMSTATE at the beginning and writing to it only if it was initially connected. ¬R // Failing is not just for failures, it's \\ users.bestweb.net/~notr for everyone. Failures just have more experience. \\ iamlistener.com
