Multisegment Output sample setup instructions

In order to run the Multisegment Output sample, follow the instructions below.

Before you begin

  1. Make sure you have a clean workspace.
  2. 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

  1. To associate the sample with your IMS server, you need to change the connection information in the bean implementation class.
  2. 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
     */
  3. 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.
    1. Right-click MultiSegOutput > sample.ims > TestMultiSeg.java, and select Run As > Java Application

Results

You can see the results in the console:

Sample application output


Feedback