|
Barbara, Thanks. Best regards, Vengoal -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris Sent: Friday, January 28, 2005 1:41 AM To: rpg400-l@xxxxxxxxxxxx Subject: Re: Rpg calls Java with errors Vengoal Chang wrote: > ... > 1. I specify the stderr.txt and stdout.txt in my > SystemDefaults.properties, these two files not exist in this moment. It has to be SystemDefault.properties (no 's' on Default). But if it's working with Qshell, you probably have the right name. > ... > So my question is: > > 1. Does RPG(call java method) pgm don't auto create stdxxx file ? But > Qshell did. > 2. How do I set the stdout.txt as appended mode not replaced mode ? > I am having trouble getting the file created even with qsh now; I must be missing some step. Using Google, I found this Software Technical Document that describes the difference between QSH and command-line calls: http://www-912.ibm.com/s_dir/slkbase.NSF/0/8303c4982f8a8f9086256e98006fbb5f? OpenDocument. It looks like I was involved in writing this, since the examples use my directory, but I confess I forgot about this other environment variable QIBM_QSH_CMD_OUTPUT. This shows how to call an RPG program as a Qshell command. In the Info Center, I found this page http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm?info/ rzahz/cmdcl.htm. It implies that if you call the program as a Qshell command, you can get the file to append by specifying FILEAPPEND=pathname for the QIBM_QSH_CMD_OUTPUT environment variable. I don't know if there's something similar for QIBM_USE_DESCRIPTOR_STDIO. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.