Page 1 of 1

Supress TSO message while executing a REXX.

Posted: Fri Feb 05, 2016 5:07 pm
by Ranveer Singh
Hello,

Unfortunately I don't have mainframe access as of now and can't really see it working. But I was looking for a way to suppress messages from TSO. I looked at a REXX code that uses EXECUTIL and was thinking if it could do that?

From the Manual z/OS TSO/E REXX Reference SA32-0972-00
Use HT (Halt Typing) to suppress terminal output generated by an exec. The exec continues running. HT suppresses any output generated by REXX instructions or functions (for example, the SAY instruction) and REXX informational messages. REXX error messages are still displayed. Normal terminal output resumes when the exec completes. You can also use EXECUTIL RT to resume terminal output.

Code: Select all

>>-EXECUTIL-----------------------------------------------------> 

>--+-EXECDD(-+-CLOSE---+-)-------------------------------------------+->< 
   |         '-NOCLOSE-'                                             | 
   +-TS--------------------------------------------------------------+ 
   +-TE--------------------------------------------------------------+ 
   +-HT--------------------------------------------------------------+ 
   +-RT--------------------------------------------------------------+ 
   +-HI--------------------------------------------------------------+ 
   +-RENAME NAME(function-name)-+-------------------+-+------------+-+ 
   |                            '-SYSNAME(sys-name)-' '-DD(sys-dd)-' | 
   '-SEARCHDD(-+-NO--+-)---------------------------------------------' 
               '-YES-'