Hello everyone, I am new to the list and need some assistance...
I am trying to capture the output of a Rexx exec. the Rexx contains both CMS and CP commands... I would like to capture this output into a stem variable... something like: PIPE <run my rexx stage> | STEM output. At the moment i feel like i am in a dead lock... I am unable to use the PIPE CMS command to run my rexx as the CP command output will not be captured... I am unable to use the PIPE REXX command as my rexx is not a stage and uses "say" along with CP and CMS commands... it is not using 'OUTPUT'... causing the output to hit the terminal and not the next stage of the STEM. I am aware that i can use the PIPE CMS and workaround the issue by using the following inside my Rexx for CP commands: PIPE CP <my cp command> | STEM var. and then printing the content of var. using say... the problem is i don't control the Rexx and i am trying to avoid forcing my users to rewrite their scripts... All i am asking is to be able to trap the output of any Rexx exec no matter what commands it uses... Say in TSO/Rexx you have the OUTTRAP function to help you do that... any ideas anyone? am i missing something? Thanks in advance! Offer Baruch
