× 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 calling a program in AS400 using ProgramCall. The program works fine
in AS400 but hangs when I call it from java. Below is my code, please
help.

ProgramCall program = new ProgramCall(system);

String programName = "/QSYS.LIB/UCSP.LIB/CSP01ACL.PGM";

try {
System.out.println("\nBefore run = "+programName);
program.setProgram(programName);
program.run();
} catch (Exception e) {
e.printStackTrace();
}
// Get the message list which
// contains the result of the
// command.
messageList = program.getMessageList();
getMessage(messageList);


The called program doesn't require any parameters.


Thanks,

Redge C. Rafols                                      
~+~+~+~+~+~+~+~+~+~+~                         
Man is still the most extraordinary
computer of all. (John F Kennedy)

________________________________________________________________________
The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally
privileged information. If you are not the intended recipient you are
hereby notified that any disclosure, copying, distribution or taking any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this communication
in error, please notify us immediately by responding to this email and
then delete it from your system. SMART Communications, Inc. is neither
liable for the proper and complete transmission of the information
contained in this communication nor for any delay of this receipt. The
content of this information may contain views and opinions which do not
constitute a formal disclosure or comment unless specifically stated by
SMART Communications, Inc.



________________________________________________________________________
The information contained in this communication is intended solely for the use 
of the individual or entity to whom it is addressed and others authorized to 
receive it. It may contain confidential or legally privileged information. If 
you are not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or taking any action in reliance on the contents of this 
information is strictly prohibited and may be unlawful. If you have received 
this communication in error, please notify us immediately by responding to this 
email and then delete it from your system. SMART Communications, Inc. is 
neither liable for the proper and complete transmission of the information 
contained in this communication nor for any delay of this receipt. The content 
of this information may contain views and opinions which do not constitute a 
formal disclosure or comment unless specifically stated by SMART 
Communications, Inc.

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.