Re: MVS command - output directed to a dataset



GETMSG can only return 10 lines once, if you issue a command which have more
than 10 lines return to the console, you should write GETMSG in a loop in
order to get all the return message.
Is there any way to get all lines in one GETMSG command?

2011/6/9 Skip Robinson <Jo.Skip.Robinson@xxxxxxx>

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
JO.Skip.Robinson@xxxxxxx



From: Scott Ford <scott_j_ford@xxxxxxxxx>
To: IBM-MAIN@xxxxxxxxxxx
Date: 06/08/2011 10:37 AM
Subject: Re: MVS command - output directed to a dataset
Sent by: IBM Mainframe Discussion List <IBM-MAIN@xxxxxxxxxxx>



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 <starsoul@xxxxxxxxxxxxxx>
To: IBM-MAIN@xxxxxxxxxxx
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 listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html




--
Best Regards,

------------------------------------------------------------------
Wu Weibiao (吴伟标)
Bayshore Consulting and Service Co.
百硕同兴科技(北京)有限公司
Tel:86-10-6439-1733,
Fax: 86-10-6439-1583,
Mobile: 1382-329-1984,
E-Mail: wu_wb@xxxxxxxxx
Http://www.bayss.com
Zhong Chen Building
Room 209, No.1 2nd Middle Li Ze Road, Chaoyang District, Beijing, China,
100102
朝阳区利泽中二路1号 中辰大厦 209室,100102

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

.



Relevant Pages

  • Re: *CNZ4201E OPERLOG HAS FAILED
    ... the Console and giving the below command didnt help it anymore. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: finding a fax in the fax console?
    ... The command line is for the Open command for TIF files. ... > I am still unable to view any faxes from the console. ... >>>>Inbox to the Outlook Inbox. ...
    (microsoft.public.outlook.fax)
  • Re: zOS 1.8 and One Byte Console ID
    ... I think that the tracking report should say what console ID it was trying ... this command. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • RE: DLL error prevents me from using Windows...please help...
    ... I tried to open Rcovery Console through SAFE MODE W/ COMMAND ... I'm attempting the Recovery Console EXPAND feature, ... >> I don't have video on my motherboard. ...
    (microsoft.public.windowsxp.general)
  • Re: Which distro for a server?
    ... > everything that I need with only a text console. ... > that doesn't exactly help me in learning linux on my own. ... command line commands or names of configuration files - field-based editing ... me a virtually seamless full screen linux GUI. ...
    (comp.os.linux)