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



Does anyone use Runtime.getRuntime().exec to call programs on the 400?

I have an application that calls a COBOL program to perform some complicated
business logic spanning numerous files.  I need to call the program with
some parameters.  The data is returned by a socket.  Before this program
calls the COBOL program, I start a new thread that is a socket server to
listen for the response from the COBOL program.

Right now I am using ProgramCall class to call the program.  I use
CommandCall to set the library list.  Both of these need an AS400 object.  I
would like to eliminate the overhead of the AS400 object communication and
do a direct call to the program.

I was thinking of using Runtime.getRuntime().exec to execute the commands
and to call the program.  I was not sure if Runtime.getRuntime().exec can
call a program with parameters.

Any ideas?

Thanks

Mike

================================
Mike Silvers
AS/400 Senior Programmer/Analyst
AS/400 IBM Certified RPG IV Developer
AS/400 IBM Certified Solutions Expert
Hainey Business Systems
8 E. Canal St
Dover, PA 17315
Branch Office:  (410) 397-8739
Phone:  (800) 932-3380 ext. 237
Fax:  (717) 292-9474
Web: http://www.hbs-inc.com
________________________________
Providing E-Commerce, EDI, AS/400
Development, Java Development,
and related services nationwide.
================================




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.