|
Hi, I use QSHELL and add environment variable when I want to skip the qshell output screen. CHGCURDIR DIR('/jar/score') CHGVAR VAR(&JAVA) VALUE('java + -Djava.version=1.4 -classpath + .:/QIBM/ProdData/Java400/jdk14/l+ ib/IBMiSeriesJSSE.jar:jt400.jar:/qibm/prod+ data/java400/jt400ntv.jar + RunAS400Score ' *BCAT &DQ + *BCAT &PNR *BCAT &TYPE) ADDENVVAR ENVVAR('QIBM_QSH_CMD_OUTPUT') VALUE('NONE') MONMSG CPFA980 QSH CMD(&JAVA) RMVENVVAR ENVVAR('QIBM_QSH_CMD_OUTPUT') MONMSG CPF0000 Regards, Magne Date: Tue, 30 Aug 2005 09:05:51 -0400 From: Todd Allen <tballen@xxxxxxxxxx> Add To Address Book Subject: Re: OUTPUT parameter on JAVA command not valid in CL program To: Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> Monitor for message JVA0122 with a MONMSG command in your CL program. PierceJ@xxxxxxxxxxxxxxxx wrote: > I am trying to call a Java program from a CL program. I am able to > successfully call the Java program, but the shell doesn't go away until the > user hits enter. I want the Java program to behave as if called with the > OUTPUT(* *CONTINUE) parameter on the JAVA call. However, when calling Java > from CL, this parameter is not allowed. I have successfully redirected all > my java i/o using the os400.stdout and os400.stderr properties. I would > rather not have to submit my Java program to batch and then wait in my CL > program using some other means to avoid this behaviour. > > Any ideas? >
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.