on 11-05-2007 9:17 AM
Hi all,
I have an issue with OS400 here. I am setting up an SAP External command to execute a Java program in OS400. What values should I fill in for the following 3 fields:
1) Operating system command
2) Parameters for operating system command
3) Additional Parameters
Is it correct if I input the following values for that 3 fields, assuming that the Java program is named as zktest.jar:
1) Operating system command: java
2) Parameters for operating system command: CALL PGM(/usr/sap/trans/scripts/zktest.jar)
3) Additional Parameters: PARM('usr/sap/zki/zki.txt')
Please kindly advise. Thank you.
Hi Zhu,
that is definetely wrong ;-((
You can test this yourself, as the following doesn't run either on OS level :
CALL PGM(/usr/sap/trans/scripts/zktest.jar)
I didn't test it, but would assume, it'll work:
STRQSH CMD('/usr/sap/trans/scripts/zktest.jar')
You should test this on OS level first and if it works, implement this in SAP ...
Regards
Volker Gueldenpfennig, consolut international ag
http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
did you follow Kolbys strategy as well ?
I don't have more ideas ...
Regards
Volker Gueldenpfennig, consolut international ag
http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de
Hi Zhu,
The command to run Java programs from the i5/OS command line is RUNJVA. This command takes three parameters: CLASS, PARM, and CLASSPATH. PARM in this case are the Java system properties. There is also the JAVA command which is just an alias for RUNJVA.
It is also possible to invoke Java through the Qshell interface, which provides Unix style command line capability.
Regards,
Kolby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.