Well, one way is to start qshell as a submitted job. Always helps to at
least skim the manual. <g>
Has anyone had any experience with QzshSystem? It's a little off topic, but
I'm curious what I did wrong. My program compiles and runs with a return
code > 0. It just doesn't do anything. I'm calling it like so:
eval retval = qzhsystem(%trim(commandtxt))
commandtext contains 'java Hello3 filename' and qzhsystem is the typo I'm
using as an alias for QzshSystem. The prototype is:
Dqzhsystem pr 10i 0 extproc('QzshSystem')
D cmdstring * value options(*string)
> -----Original Message-----
> From: Joel Fritz [mailto:JFritz@sharperimage.com]
> Sent: Thursday, April 04, 2002 10:43 AM
> To: JAVA400-L@midrange. com (E-mail)
> Subject: calling java from rpg at v4r5
>
>
> Is there a way to call a java program from an RPG program and
> close the
> qshell session automatically?
>
> Would the QzshSystem api do me any good? So far I can get it
> to run with a
> positive return code, but no visible results. I've tried a
> java program
> that writes one line to a text file, and redirecting the
> output of ls to a
> text file.