cancel
Showing results for 
Search instead for 
Did you mean: 

SAP External Command for OS400

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Volker,

I have followed what you have suggested but it still cannot work for SM49. Anything else which you think I can try?

Thank you.

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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