On Thursday, March 28, 2019 at 5:17:25 PM UTC-5, [email protected] wrote:
> I have this program that issues MVS commands.  As expected, the output 
> appears in the SYSLOG.   Is there a way to make it appear in SYSPRINT or 
> SYSOUT?
> 
> Thanks

I caught this one out on Google Groups.  

There is nothing in MGCR(E) (SVC 34) that will cause output to go to any 
particular allocated DD.  You could run under the TMP, and use the CONSOLE 
command to issue system commands and have the output go back to SYSTSPRT -- 
you'll need to ensure that CONSPROF is setup to echo the commands back... 
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.ikjc400/conspro.htm
 

Alternatively, your code could open SYSPRINT/SYSOUT and write the text of the 
messages from the MDBs returned by the commands.

Scott Fagen
21st Century Software

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to