Look at PIPE AHELP STREAMSTATE.  I think you want a return code of 12 from
'STREAMSTATE OUTPUT 1' -- defined but not connected.

                                        Marty

> -----Original Message-----
> From: CMSTSO Pipelines Discussion List
> [mailto:[EMAIL PROTECTED] On Behalf Of Craig Edwards
> Sent: Saturday, April 28, 2007 6:12 PM
> To: [email protected]
> Subject: [CMS-PIPELINES] 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
>

Reply via email to