Shouldn't you have a delay in there to giv the started task time to process he 
CIB?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Ed 
Jaffe <edja...@phoenixsoftware.com>
Sent: Wednesday, August 26, 2020 5:56 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: MVS modify command capture

On 8/26/2020 2:39 AM, Peter wrote:
> I have a command
>
> F STARTEDTASK, STATUS
>
> it gives the output in SYSLOG but I would like to write it's output to a
> Dataset
What you want do is trivial using built-in facilities in REXX.

This example writes a stem to the end user. I assume you know how to
write a stem to a data set using EXECIO:

/* REXX */
"CONSPROF SOLDISPLAY(NO) UNSOLDISPLAY(NO)"
"CONSOLE ACTIVATE CART("||USERID()||")"
address console "F STARTEDTASK,STATUS"
rc = GETMSG('response.','SOL',USERID(),,10)
do i = 1 to response.0;say response.i;end
"CONSOLE DEACTIVATE"

--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
https://secure-web.cisco.com/1icWInSv_rEgqrXbqQSs2rKkJsCZ7zMbjuZuqH9PZB2DK12VdA_7uCW-Vh0oahfmhuL1BjdQxw_vHqXqVJZ1Fo6sZQkOSW-7vWaTNu5qZyNY5HuNOISSLO9w1ghiXq1du1fbIS9ShggDaXi0MEST6z7hNRVtQNVh_SG1veS9p9Q2dWzpf1tf6osdl-gqMh2TZALyMoX398Imk61y1cPOkd7asqR0ZGM-H-6ZA9Vlb1j_5r5fDB5DHtghmnZUWRy6ADU9QDZMx2iWEyJvohuy_bEklxk6d0nMVHPgj3bjmWUGW-ROyd0j0LXk2MuKbXJVAULKFV4SAyeos7HS4k6aSVPpPb0xhfxjfivsqI09gg6w8jNpin_frxdUSE54rjarJpJHZcQfcVohUDcXgzqfHW6taAynDJIH67SewABcFBIcOL1CepL_6S0QheaWEeXX2/https%3A%2F%2Fwww.phoenixsoftware.com%2F


--------------------------------------------------------------------------------
This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to