|
In the past, when I've had to call AS/400-native programs from Java programs on the AS/400, I've done it with a "Runtime.getRuntime().exec()" call, building the input parameters into what I passed to "exec()," doing a "getInputStream()" on the returned "Process," and having the AS/400-native program write its output to STDOUT, where it would be readable to the calling Java program. At the time, I don't think Toolbox calls were an option, and even once they were, the above seemed a more straightforward way of making the call than anything I could find in the Toolbox. Is there a quick, easy way for Java (on the AS/400) to call an AS/400-native program (on the same box) and get a single character string return value, of which I'm not yet aware? -- JHHL
As an Amazon Associate we earn from qualifying purchases.
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.