|
This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] I read through this thread already. All examples are starting with RUNJVA command through QSH though! I tried an example (to redirect it) and the result is that output from QSH itself is indeed written to a file on ifs. I want to do this but starting from RPG, calling JAVA. This isn't described anywhere. This is my procedure: Call CL - sets 'classpath' environment variable - call RPG program using 'call' cmd - remove 'classpath' environment The RPG program call's javamethod's using callp. I found a way to redirect the output of QSH to an ifs-file (setting a specific variable). Then I changed the cl to test it: Call CL - sets 'classpath' environment variable - sets 'QIBM...=FILE='mydir/myfile' variable - QSH CMD('ENV') - call RPG program using 'call' cmd - remove 'QIBM...=FILE='mydir/myfile' variable - remove 'classpath' environment Result is that the output from the QSH-cmd is printed in 'myfile', the output from the javamethod's are still shown on the 5250-screen. " I don't have problems, only challenges... " Patrick Goovaerts WebMaster Clipper Support nv TEL : 0032 (0)3 5453991 GSM: 0498 610 325 WEB: www.conti7.be From: "Jon Paris" <Jon.Paris@Partner400.com> To: <java400-l@midrange.com> Subject: STDOUT to file Date: Thu, 8 Aug 2002 17:53:16 -0400 Reply-To: java400-l@midrange.com >> Any suggestions on how to do this? There has been a lengthy thread on this topic on the WEB400 list on this server (www.midrange.com) check the archives at the web site. There are a couple of solutions suggested there - I don't know for sure if it will work for Java based apps - but can't think of why it shouldn't. Jon Paris Partner400
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.