× 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'm having a problem getting a ProgramCall instance to do anything when the run() method is called. It doesn't error out, or pass through, or seemingly even connect to the iSeries. Does anyone have any ideas what I might be doing wrong or how I might better debug the issue?

Here's a code snippet, fwiw:

ProgramParameter[] paramList = new ProgramParameter[1];
AS400Text paramText = new AS400Text(20);
paramList[0] = new ProgramParameter(paramText.toBytes("16092604G1 I NN "));
System.out.println("About to call program");
ProgramCall dayendProgram = new ProgramCall(system, QSYSObjectPathName.toPath("GTSTPGMS", "ARB771", "PGM"), paramList);
System.out.println("Program about to be called.");
if (dayendProgram.run() != true)
{
System.out.println("About to get error messages.");
AS400Message[] messageList = dayendProgram.getMessageList();
for (int i = 0; i < messageList.length; i++)
{
System.out.println("Message " + i);
System.out.println(messageList[i].getText());
}
}
else
{
System.out.println("Got done!");
}
system.disconnectAllServices();



And here's the output I get (which outputs in about 5 seconds, but I wait 10 minutes before giving up):


About to connect
Got connected
About to call program
Program about to be called.

--
John Gilmore-Baldwin
jbaldwin@xxxxxxxxxxxxxxx


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.