In a Rexx, you can use the TSO CONSOLE facility to issue an MVS command 
and trap the returned output in an array. The Rexx can then write the 
contents of that array to a data set. 

Be aware that a few commands do not return output to the Rexx, but I 
believe that all DISPLAY commands do so. 


.
.
JO.Skip Robinson
SCE Infrastructure Technology Services
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
626-302-7535 Office
323-715-0595 Mobile
[email protected]



From:   Juan Mautalen <[email protected]>
To:     [email protected]
Date:   06/08/2011 09:41 AM
Subject:        MVS command - output directed to a dataset
Sent by:        IBM Mainframe Discussion List <[email protected]>



Hi:

I need to execute an MVS DISPLAY command with its output written to a 
dataset. Using IEFBR14 i managed to execute the command in batch, but the 
output is only written to SYSLOG. Is there a way to have the output also 
written to a dataset?

Thanks in advance for your help,

JUAN MAUTALEN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to