× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Personally, I don't use the technique you mentioned, instead I do this:

OVRPRTF FILE(STDOUT) TOFILE(QSYSPRT) HOLD(*YES)
OVRPRTF FILE(STDERR) TOFILE(QSYSPRT) HOLD(*YES)

Like the one you show, it must be done before the JVM is started, and the files are closed only when the JVM is ended. However, with this method, the stdout/stderr data goes to the spool instead of an IFS file. When you do it again in a subsequent job, it'll start new spooled files, so the logs are retained.

I'm sure there are many variations on this you could come up with.


On 4/12/2013 3:33 PM, Troy Hyde wrote:
I'm sure I'm overlooking something pretty basic but even with my ninja
Google skills I have been unable to determine how to make what has got to be
a simple switch.

I'm running java from RPGLE after redirecting stdout by setting the envvar
QIBM_RPG_JAVA_PROPERTIES with the
value -Dos400.stdout=file:/myfolder/myfile.txt;
and setting QIBM_USE_DESCRIPTOR_STDIO to Y.

My output is properly going to the file, but each time a new job starts, it
replaces the existing file when I would like it to append.

Is there another environment variable or a different value that someone can
share?

Thanks,
Troy


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-2024 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.