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



A little late I know (better then never though)

When discussing the matter with the RPG programmer I realized that he
prefers
the RPG programs(s) to enter MSGW state so he can do a STRSRVJOB+STRDBG and
zero in on the program line causing the error.
hence, no MONITOR + On-Error
I had the java programmer set a suitable time out interval so that when en
wrror occurs and the RPG program gets a MSGW the java program times out and
the user
receives a prompt informing her of the error.

Thanks Charles, Buck and Chuck for your advice

Gad



On 15-May-2015 07:57 -0500, Gad Miron wrote:

We have a Java-Windows application that uploads text files (one at a
time) to the iSeries/System i/AS400 machine and then calls a Stored
Procedure to process the file uploaded.
The SP calls an RPG program that in turn conditionally call other
RPG/CL programs.
all of the above is executed in a QZDASOINIT job (spawned
especially?)

Sometimes one of the RPG/CL programs in the process "bombs" (with a
CPFXXX) but the guy using th Java application is not aware of it, it
is the SYSOPR actually that sees the MSGW status of the QZDASOINIT
job and calls a programmer to look at it.

Now,
Is there a way to trap the errors and inform the Java application
user that there was an error ?
This, *without* inserting MONITOR lines in the RPG programs and
manually returning some kind of a return code?

The Java programmer tell me she can trap an error but an error is
not received. (perhaps it is another QZDASOINIT job? )

Any advice will be appreciated



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.