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


  • Subject: RE: Supressing all screen/print output
  • From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
  • Date: Tue, 7 Nov 2000 13:13:49 -0800

Unfortunately there *is* a reason.  When QSH runs a Java command that fails,
for whatever reason, it sends itself a message that is inaccessible to the
program calling QSH.  It doesn't issue an escape message, so the calling
program has no way of knowing whether the Java program ran successfully or
not.  I was originally using QSH to run our Java programs, but the fact is
that Java programs occasionally fail for no apparent reason on our systems
(or because some careless programmer, no names mentioned, changes the
class's input parameters but not the CLs that call it), and it's better for
us to know that at the time it happens.

I tried overriding QSH's stdout, but that got too complicated because
there's no way to tell "good" stdout from "bad" when you look at the
resulting output file.  So our workaround at present is to restrict Java
programs to be run in batch only.

PC2

-----Original Message-----
From: Eyers, Daniel [mailto:daniel.eyers@honeywell.com]
Sent: November 7, 2000 12:24
To: 'JAVA400-L@midrange.com'
Subject: RE: Supressing all screen/print output


Is there a reason why it has to be the RUNJVA command????  It seems to me
that if it works using QSH, but not using RUNJVA *and* one *could* run the
QSH.... 

I'm not the most experienced java programmer, so I'm not sure what the
differences are.  I use the QSH solution for my e-mail solution and I don't
have the issues discussed.

dan


-----Original Message-----
From: Clapham, Paul [mailto:pclapham@core-mark.com]
Sent: Tuesday, November 07, 2000 3:01 PM
To: JAVA400-L@midrange.com
Subject: RE: Supressing all screen/print output


From my experiments it appears that OVRDBF redirects stdout from the QSH
command but not from the RUNJVA command.  But please post code that works
for you.

PC2
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

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.