In MVS, CONSOLE is protected by SAF; at a normal installation the security profiles for, e.g., RACF, restrict access to trusted personnel. The OP has stated that he cannot obtain permission from management.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Assembler List [[email protected]] on behalf of Dave Clark [[email protected]] Sent: Tuesday, May 9, 2023 2:06 PM To: [email protected] Subject: Re: Can REXX OUTTRAP trap WTO's? "IBM Mainframe Assembler List" <[email protected]> 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 -- int.ext: 91078 direct: (937) 531-6378 home: (937) 751-3300 Winsupply Group Services 3110 Kettering Boulevard Dayton, Ohio 45439 USA (937) 294-5331 ********************************************************************************************* This email message and any attachments is for use only by the named addressee(s) and may contain confidential, privileged and/or proprietary information. If you have received this message in error, please immediately notify the sender and delete and destroy the message and all copies. All unauthorized direct or indirect use or disclosure of this message is strictly prohibited. No right to confidentiality or privilege is waived or lost by any error in transmission. *********************************************************************************************
