What command? 
Commands are just compiled programs with predefined inputs and outputs. 
Output may be written to the terminal, or file allocation named sysprint, 
sysout, systsprt, or whatever. 
usually what I do is is use REXX code SYSOUTTRAP to capture output written to 
terminal then write the stemvars to a file.  
can't do that with all commands though. 
you need to know what is allocated for the command output.  



--- On Wed, 6/8/11, Juan Mautalen <jgmauta...@yahoo.com.ar> wrote:

> From: Juan Mautalen <jgmauta...@yahoo.com.ar>
> Subject: MVS command - output directed to a dataset
> To: IBM-MAIN@bama.ua.edu
> Date: Wednesday, June 8, 2011, 12:39 PM
> 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 lists...@bama.ua.edu
> with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
> 

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

Reply via email to