Input and Output Arrays setup instructions |
|
Before you import the sample,
After you import the sample, you need to configure the server and associate the sample with it using the following steps:
To directly invoke and run the TestInOut program, you will use the TestInOut.java file. The TestInOut.java sample is only used as a reference. You may need to change the transaction code in the TestInOut.java file. Please find out from your IMS administrator. To make modification to the transaction code, locate the statement input.setWs__trcd("SKS7 "); and make modifications.
You will see the following in the console:
Congratulations, you have completed the IMS transaction input and output messages containing arrays sample. |
IDENTIFICATION DIVISION.
program-id. pgm1.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
DATA DIVISION.
LINKAGE SECTION.
01 IN-OUT-MSG.
05 WS-LL PIC S9(3) COMP VALUE +0.
05 WS-ZZ PIC S9(3) COMP VALUE +0.
05 WS-TRCD PIC X(5).
05 INDX PIC 99.
05 WS-CUSTOMER OCCURS 1 TO 8 TIMES
DEPENDING ON INDX.
15 WS-CUST-NUMBER PIC X(5).
15 WS-CUST-NAME PIC X(20).
05 WS-FUNC-CODE PIC X(6).
PROCEDURE DIVISION.
back to top