If you have SDSF or (e)jes, try the ISFCALLS interface.
On May 9, 2023 8:18:53 PM GMT+02:00, "Farley, Peter" <00000dc9d8785c29-dmarc-requ...@listserv.uga.edu> wrote: >From the Rexx Language Reference: > >"To use the CONSOLE environment, you must have CONSOLE command authority." > >I do not have and can't request that authority as the business need is >insufficiently important. > >Peter > >-----Original Message----- >From: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> On Behalf >Of Dave Clark >Sent: Tuesday, May 9, 2023 2:06 PM >To: ASSEMBLER-LIST@LISTSERV.UGA.EDU >Subject: Re: Can REXX OUTTRAP trap WTO's? > >"IBM Mainframe Assembler List" <ASSEMBLER-LIST@LISTSERV.UGA.EDU> wrote on >05/09/2023 01:38:32 PM: >> Is there any way for Rexx script to capture WTO output? This is a >> simple case, a one-line WTO, no multiline possible. >> >> I only recently found a need to do this, and my tests so far say "noit >can't". >> >> /* Rexx */ >> /* Capture WTO from BATCHPGM */ >> xtrp = outtrap("zdsp.") >> address attchmvs "BATCHPGM" >> xtrp = outtrap("OFF") >> say "ZDSP.1="zdsp.1 > > I can't speak to zOS or TSO. But I have done this in zVSE using >teh REXX CONSOLE facility combined with GETMSG. > >Sincerely, > >Dave Clark >-- > >This message and any attachments are intended only for the use of the >addressee and may contain information that is privileged and confidential. If >the reader of the message is not the intended recipient or an authorized >representative of the intended recipient, you are hereby notified that any >dissemination of this communication is strictly prohibited. If you have >received this communication in error, please notify us immediately by e-mail >and delete the message and any attachments from your system.