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



Indeed, my program was in QUSRWRK, hung on msgw. Turned out to be a library list problem, so I changed the jobd and the program ran fine.

Thanks for the help.

John Gilmore-Baldwin

On Sep 29, 2004, at 8:17 PM, Joe Pluta wrote:

It's late, so I don't have tons of information at my fingertips, but let
me try to explain as best as I can recall. When you create a connection
using the toolbox, the toolbox launches a job named QZRCSRVS (by default
these jobs run in QUSRWRK). Typically in a situation like this when a
ProgramCall hangs, it's because the program called halted with a
message. If that's the case here, you'll see the message in the QSYSOPR
message queue as well as in the job's joblog.


Still can't find the right job? You can also programmatically determine
which QZRCSRVS job is the one you want. If you take a look at the AS400
class, there is a method called getJobs which returns an array of jobs.
Now, different jobs are started for different services, such as signon
and database. If you pass it the right parameter (I believe it's
COMMANDCALL), you'll get an array of jobs used for program and command
calls. Now, I can't think of a situation where there is more than one
job, so my guess is that if you dump the attribute of the first entry in
the returned array (I think the methods getName, getUser and getNumber
will work) and dump that with your "Program about to be called" message.
Then look at the resulting job to see what the hangup is.


Joe

From: John Gilmore-Baldwin

About to connect
Got connected
About to call program

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



John Gilmore-Baldwin
IS Director
The Olympian
(360) 754-5497
jbaldwin@xxxxxxxxxxxxxxx
http://www.theolympian.com


John Gilmore-Baldwin IS Director The Olympian (360) 754-5497 jbaldwin@xxxxxxxxxxxxxxx http://www.theolympian.com


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.