On 2021-05-03, at 18:11:43, Joseph Reichman wrote:
>
> Thanks for getting back my ultimate goal is get an environment that will do an attach
> Why with an attach I can have recovery / Estae
>
ATTACH is an interesting idea. At times I've wished for
an ATTCH that would let the subtask run asynchronusly,
concurrent with the Rexx parent. There are comlications:
o Fielding POST of the completion ECB and DETACHing.
o Avoiding assumptions about undocumented operation
of Rexx storage management.
> It’s seems like the outtrap only captures tso commands
>
> When I get an e37 I am able to get the the code in the RC variable
> However the messages because they are z/os aren’t trapped think if I had an Estae
>
> I wouldn't get the messages
>
But why bother with creating a command environment rather than
simply LINKMVS to an assembler routine that sets an ESTAE and
ATTCHes? But beware: there's no guarantee that pointers to
any Rexx-owned objects will remain valid. Copy the content
before the ATTCH if the child process needs it.
-- gil