On 1/6/2016 1:12 PM, Paul Gilmartin wrote: > ... But now I recall problems I had because if a (Rexx) stage is > running asynchronously variables it references are defined in the > nearest nested static REXX. So is there any guaranteed way to > pass the result of STREAMSTATE to PARSE?
Other way around--it's not a REXX stage that may run asynchronously from its calling pipeline, it's an ADDPIPEd pipeline that runs asynchronously from the REXX stage that added it. STREAMSTATE will always set the variable in the REXX stage that issued it. That stage doesn't have a chance to go anywhere until STREAMSTATE returns and gives it back control. ¬R
