Here's a sample/skeleton to play with. The userid that runs this Rexx must 
have a TSOE segment (RACF terms, don't know about other products) and at 
least READ access to profile CONSOLE in the TSOAUTH class. 

/* REXX */ 
TRACE N 
ARG cmd 
"CONSPROF SOLDISP(NO) UNSOLDISP(NO)" 
"CONSOLE ACTIVATE NAME(CONSTEST)" 
ADDRESS CONSOLE cmd 
mrc = GETMSG("CMSG.","SOL",,,5) 
DO mx = 1 TO cmsg.0 
  SAY cmsg.mx 
END 
"CONSOLE DEACT" 
EXIT 


.
.
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:   Scott Ford <[email protected]>
To:     [email protected]
Date:   06/08/2011 10:37 AM
Subject:        Re: MVS command - output directed to a dataset
Sent by:        IBM Mainframe Discussion List <[email protected]>



I agree with Liz and Skip that the way i have being performing t
Juan:

I agree with Liz and Skip that the way i have being performing that 
function for 
years. The ISPF /REXX one is good and the batch Rexx one is equally as 
good.
 
Scott J Ford
 




________________________________
From: Lizette Koehler <[email protected]>
To: [email protected]
Sent: Wed, June 8, 2011 12:47:22 PM
Subject: Re: MVS command - output directed to a dataset

> 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

Two ways come to mind -


You could use the SDSF REXX interface to capture and format your display 
command.

You could use REXX and console function.

You could use the SDSF Batch program to do the display command.

Lizette


----------------------------------------------------------------------
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