This works for me in CL programs to capture java STDOUT to an IFS file.
Haven't tried this from RPG but should work as long as env var is set.
/*---------------------------------------------------------------------
/* SET THE IFS PATH TO STORE QSHELL OUTPUT FOR */
/* REVIEW IF NEEDED. */
/*---------------------------------------------------------------------
CHGVAR VAR(&STDOUTFILE) VALUE('FILE=' |< &STDOUTIFS)
/*---------------------------------------------------------------------
/* SET THE QSHELL STDOUT IFS FILE LOCATION */
/* ENVIRONMENT VARIABLE */
/*---------------------------------------------------------------------
ADDENVVAR ENVVAR('QIBM_QSH_CMD_OUTPUT') +
VALUE(&STDOUTFILE) REPLACE(*YES)
Regards,
Richard Schoen
RJS Software Systems Inc.
"Get the information you need. Now!"
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
------------------------------
message: 5
date: Fri, 2 Oct 2009 08:17:07 -0500
from: "hockchai Lim" <lim.hock-chai@xxxxxxxxxxxxxxx>
subject: Flashing of java system.out
I've a on-line RPG program that calls a java method to do some work.
This
java method does some System.out.println, which is flashing on the 5250
screen. Is there a way to prevent flashing of this System.out.println?
As an Amazon Associate we earn from qualifying purchases.