On 1/5/2016 12:03 PM, amphitr...@ok.de wrote:
> I flipped through The Book but did not find an example. When I
> want an optional secondary stream in a REXX, do I have to query
> for it and optional use '*..1:' or 'take 0' in my callpipe? Or is
> there a canonical way to make the secondary connector act smart?

It may wind up being messier to keep track of than the change in your
callpipe, but you can connect a new output stream:

  'addstream output xtra'
  'addpipe *.out.xtra: | take 0'

If there was already an alternate, the new one will just harmlessly go
unused.

I've never quite gotten why that ADDPIPE is needed.  Without it, you get
message FPL139E:  No connection available to redefine for *..1:  But you
don't get that message for a stream that's initially defined but
unconnected.

> And, what do I have to do that MAXSTREAM IN and MAXSTREAM OUT give
> different results?

ADDSTREAM INPUT or OUTPUT.

¬R

Reply via email to