In order to run the Multisegment Output sample, follow
the instructions below.
Before you begin
- Make sure you have a clean workspace.
- You need to perform some setup work on the IMS™ server, where you want the MSO IMS program to execute. These steps are not covered.
Contact your IMS server administrator
for setup instructions and for connection information to your IMS server.
About this task
You need to configure the server and associate the sample
with it using the following steps:
Procedure
- To associate the sample with your IMS server, you need to change the connection
information in the bean implementation class.
- Open MSOImpl.java in a Java™ editor, change the following tag to use
your IMS server connection information.
/**
* @j2c.managedConnectionFactory class="com.ibm.connector2.ims.ico.IMSManagedConnectionFactory"
* @j2c.managedConnectionFactory-property name="dataStoreName" value="dataStoreName"
* @j2c.managedConnectionFactory-property name="hostName" value="hostname"
* @j2c.managedConnectionFactory-property name="portNumber" value="portNumber"
* @j2c.connectionSpec class="com.ibm.connector2.ims.ico.IMSConnectionSpec"
* @generated
*/
- Testing the application using the TestMultiSeg.java program: To directly invoke and run the TestMultiSeg program,
you will use the TestMultiSeg.java file. The TestMultiSeg.java sample
is only used as a reference. You may need to change the transaction
code in the TestIMultiSeg.java file. Contact your IMS administrator. To make modification to the
transaction code, locate the statement input.setIn__trcd("SKS6 ");
and make modifications.
- Right-click , and select
Results
You can see the results in the console: