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



I ran into the same thing the other day.  With V5R1, you'll need to run 
your class via QSH and tell QSH to redirect the output through an 
environment variable.  Example:
====
ADDENVVAR  ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)
MONMSG     MSGID(CPFA980) 

QSH CMD('java com.whater.MyClass')
====
QIBM_QSH_CMD_OUTPUT environment variable can have these values: 

1.      STDOUT - displays the output to the C runtime terminal session. 
This is the default value. 
2.      NONE - throws away any output that is produced. 
3.      FILE=pathname - stores the output in the file specified by 
pathname. 

===
Marshall Dunbar
DPS, Inc.
marshall@xxxxxxxxxxx
(317)574-4300 (800)654-4689
====




"Glen Marchesani" <glenlist@xxxxxxxxxx>
Sent by: java400-l-bounces@xxxxxxxxxxxx
03/24/2003 11:15 AM
Please respond to Java Programming on and around the iSeries / AS400 

 
        To:     ava Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
        cc: 
        Subject:        overriding QPRINT/System.out


I have a server app that does it's logging to System.out
and when it runs on the AS400 the output goes to spool file
QPRINT.  This behaviour works well as it allows for a sort
of java joblog.

The problem I am having is that the log fills up QPRINT and
then the job gets stuck waiting on a QSYSOPR message that
the spool file QPRINT is full.  This is installed on many
as400's each with their own needs on QPRINT (so changing
 QPRINT is NOT an option).

I would like java System.out to go to a different spool
file.  I want to avoid re-working the logger to use the
Toolbox to output to the spool file.  I am hoping for a
solution that can work by either config or in the CLP that
starts teh java server. 

I once got this tip from IBM but I find it doesn't work on
newer releases.  That tip is to do an OVRDBF of QPRINT to a
print file of your own creation (with *NOMAX of course).
 Like so....

OVRPRTF    FILE(QPRINT) TOFILE(&LIBRARY/SERVER) 
OVRDBF     FILE(QPRINT) TOFILE(&LIBRARY/SERVER) 
RUNJVA     CLASS(main.Server) PARM('/setup' + 
             &PROPS '/home' &HOME '/port' &PORT + 

I have both the OVRPRTF and OVRDBF to show that I have
tried both.  This has worked on our v4r4 box (jdk1.3) but
doesn't work on the same box at v5r1 (jdk1.3).

Any help/solutions/workarounds are appreciated.

regards,
Glen
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.