Make your second stream something like: "? literal yy | m: | spec /secondary output/ 1 1-* nw | cons"
And see what happens. Regards, Richard Schuh -----Original Message----- From: CMSTSO Pipelines Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Craig Edwards Sent: Saturday, April 28, 2007 3:12 PM To: [email protected] Subject: Checking that only primary output stream is connected Howdy all, I am writing a stage that expects incoming records on both primary and seconday input, but want to ensure that only the primary output stage is connected. Consider this pipe: pipe (end ?) literal xx | m: mystage | cons ? literal yy | m: It seems to me that calling MAXSTREAM OUTPUT is not the right solution because it will return 1, because the secondary output stream it is defined (but not connected). I think I need to iterate over all output streams and check that the rc from STREAMSTATE is 0, 4, or 8. Is that correct? Any advice would be appreciated. Thanks a lot. -- Craig
