×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




One option is to run it in batch, where the output gets dumped to a spooled file.



-----Original Message-----
From: Gerald Magnuson [mailto:gmagqcy.midrange@xxxxxxxxx]
Sent: Friday, December 02, 2016 9:28 AM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-L@xxxxxxxxxxxx>
Subject: java calls in rpgle - force screen output to file

while I am debugging rpgle - jni program, a shell screen pops up, and doesn't stay long enough for me to see what it is saying....

I tried to do "CRTENVVAR QIBM_RPG_JAVA_PROPERTIES '-Dos400.stderr=file:stderr.txt;'

and that did indeed create a file "stderr.txt", but it was empty...


I think I need to add a parm on my calls to *JAVA, to say to NOT output to
* (screen), but output to *FILE.... but I don't know how to do that....

how do I capture the stuff that shows up on the shell screen?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.