cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA command to long for qsh (iSeries)

Former Member
0 Kudos

Hi all,

I've to run a java instruction regarding the configuration of SDMAgents in iSeries, SAP OSS note 987092.

the point 9 tell me to run this command in QSH

9. To execute the SMD setup, log on with user SMDADM (default password is

sapofr), start QSH or QP2TERM and do the following:

cd /usr/sap/SMD/J<XX>/SMDAgent

java -classpath

/usr/sap/SMD/J<XX>/SMDAgent/lib/sapxmltoolkit.jar:/usr/sap/SMD/J<XX

>/SMDAgent/lib/smdagent.jar:/usr/sap/SMD/J

<XX>/SMDAgent/lib/tc_sec_secstorefs.jar:/usr/sap/SMD/J<

XX>/SMDAgent/lib/iaik_jce_export.jar:/usr/sap/SMD/J

<XX>/SMDAgent/lib/launcher/logging.jar:/usr/sap/SMD/J<

XX>/SMDAgent/lib/smdserver.jar:/usr/sap/SMD/J

<XX>/SMDAgent/lib/exception.jar:/usr/sap/SMD/J<

XX>/SMDAgent/lib/sapj2eeclient.jar:/usr/sap/SMD/J

<XX>/SMDAgent/lib/launcher/smdagentlauncher.jar

com.sap.smd.setup.Setup /QIBM/ProdData/Java400/jdk14

<monitoring_box_hostname> <monitoring_box_P4Port>

<monitoring_box_AdministratorUserName> <monitoring_box_password>

but this command is to long, and does not fit into qsh buffer, someone know how can I run this command in QSH ?

How can I create a Batch to run from QSH or where can I define the classpath previously !?!?

Thanks

Regards,

Pedro Rodrigues

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pedro,

here is my response (from the SAP problem ticket that you opened):

You can always create a batch file (shell script file).

To do this, create a file with a name you chose, e.g. "doit.sh". The

first line of the file needs to be:

#!/bin/sh

Write your command then in the second line.

Afterwards, go into QSH/QP2TERM and change into the directory where

doit.sh resides. You have to make sure that doit.sh is an executable

file, e.g. by doing "chmod 777 doit.sh".

Afterwards, call the script with "./doit.sh".

HTH,

Christoph

Former Member
0 Kudos

Hi Christoph,

Thanks for your quick answer, but can you tell me what text editor can I use in iSeries?

Regards,

Pedro

Former Member
0 Kudos

Hi Pedro,

in iSeries you can use EDTF.

You can also create the file in QSH with "touch <filename>" and afterwards on the greenscreen, do a WRKLNK <filename> and chose option 2 (edit). I think that starts EDTF as well.

Another option is to use a text editor from Windows over the mapped iSeries share. But you have to make sure that the editor is able to handle unix line breaks and uses them.

Best regards,

Christoph