|
Hi this is some part of my CL prgroam, which does not open the QSH command if u call java from RPG program, may be work for CL program and RUNJVA command also CRTPF FILE(QTEMP/STDOUT) RCDLEN(10000) MONMSG MSGID(CPF0000 MCH0000) CLRPFM FILE(QTEMP/STDOUT) MONMSG MSGID(CPF0000 MCH0000) DLTOVR FILE(*ALL) LVL(*JOB) MONMSG MSGID(CPF0000 MCH0000) OVRDBF FILE(STDOUT) TOFILE(QTEMP/STDOUT) + OVRSCOPE(*JOB) MONMSG MSGID(CPF0000 MCH0000) CRTPF FILE(QTEMP/STDERR) RCDLEN(10000) MONMSG MSGID(CPF0000 MCH0000) CLRPFM FILE(QTEMP/STDERR) MONMSG MSGID(CPF0000 MCH0000) OVRDBF FILE(STDERR) TOFILE(QTEMP/STDERR) + OVRSCOPE(*JOB) MONMSG MSGID(CPF0000 MCH0000) Ashish --- rune@xxxxxxx wrote: > The OVRDBF commands will ony work with the QSH > command. With RUNJVA there > is no way of redirecting input and output. > > Rune > > > > > "Rick DuVall" <R_C_DuVall@xxxxxxxxxx> > Sent by: java400-l-bounces@xxxxxxxxxxxx > 12.12.2003 21:11 > Please respond to Java Programming on and around the > iSeries / AS400 > > To: "Java Programming on and around the > iSeries / AS400" > <java400-l@xxxxxxxxxxxx> > cc: > Subject: RE: How Do You re-direct the > qshell output from an > interactiveJavaProgram? > > > Thanks for the reply Mike. > > I already tried that - ovrdbf > stdout to whatever - and it > didn't help. I > finally noticed that there is a parm on the runjava > program which is > > Output: > Destination . . . . . . . . . *PRINT > *PRINT, *NONE, * > Program end action . . . . . . *PAUSE > *PAUSE, *CONTINUE > > and if i change the *PAUSE To > *CONTINUE it removes the > need to press > <Enter> with each iteration. Took me long enough to > find it.. ;-) > > Regards > > Rick DuVall > Systems Manager > Dealer's Auto Auction of Okc, Inc. > Rick@xxxxxxxxxx <mailto:Rick@xxxxxxxxxx> > (405) 947-2886 > > Mike Silvers Wrote: > I believe that if you search the archives on STDOUT > you should receive the > info. The process is to override the STDOUT to > another file before > invocation. I can not remember the exact > syntax..... This can also be > accomplished in Java > > > > I have a java program called from a cl which opens > a qshell screen on > each > > iteration and requires <Enter> to be pressed. How > can I redirect the > output > > (print lines and informational messages) to a > printer or to null? I > have > > searched the archives and can't find anything. I > found mention of > > redirecting java printer output, but couldn't make > it fit my problem... > > > > The program runs fine in batch. > > > _______________________________________________ > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) > mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > > > _______________________________________________ > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
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.