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



Hi
I have a situation where i call a RPGLE program using PCML, this PCML has 3 parameters, 2 i send from Java to RPG and in 3 RPG returns back feedback along with a message in message queue.

This program works on our development machine, but one of of the AS400 machines, Java program is not getting value in message queue or in PCML field.

How do i debug this issue on this particular AS400 machine.

the code i am using to read message queue is as below
// clear the queue for any previous message
queue.remove();
// call RPG program
boolean rc = pcml.callProgram(pcmlFile);
//if call is successful
List messages = new ArrayList();
if (rc)
{
Enumeration e = queue.getMessages();

while (e.hasMoreElements())
{
QueuedMessage msg = (QueuedMessage) e.nextElement();
msg.load();
messages.add(msg.getID() + " " +
StringEscapeUtils.escapeJava(msg.getText()) + "|" +
StringEscapeUtils.escapeJava(msg.getHelp()));
}
}

A$HI$H




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.