Hi,
I am prototyping and calling some Java methods in some online as well as batch RPGLE programs.
In the online RPGLE program, a terminal screen comes up as soon as the java method is invked showing some messages. I need to eliminate this screen.
In the batch RPGLE program, all these messages are directed to spooled file QPRINT it seems. And I need to avoid this mesagges going to QPRINT also. In fact I need to either discard these messages or redirect them to some other file.
I tried these but it didn't work.
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT)VALUE('FILE=/mydirectory/QSHELL_output') LEVEL(*JOB)
I wonder why setting the above environment variables didn't work. Is it because calling java from RPGLE does not invoke QSH at all. If so, then is there any other environment variable which can be set to some value to discard or re-direct messages when calling java from RPGLE.
Looking forward to replies. Any help on this will be appreciated.
Thanks,
Subha P.
I am prototyping and calling some Java methods in some online as well as batch RPGLE programs.
In the online RPGLE program, a terminal screen comes up as soon as the java method is invked showing some messages. I need to eliminate this screen.
In the batch RPGLE program, all these messages are directed to spooled file QPRINT it seems. And I need to avoid this mesagges going to QPRINT also. In fact I need to either discard these messages or redirect them to some other file.
I tried these but it didn't work.
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT)VALUE('FILE=/mydirectory/QSHELL_output') LEVEL(*JOB)
I wonder why setting the above environment variables didn't work. Is it because calling java from RPGLE does not invoke QSH at all. If so, then is there any other environment variable which can be set to some value to discard or re-direct messages when calling java from RPGLE.
Looking forward to replies. Any help on this will be appreciated.
Thanks,
Subha P.
Comment