This operation passes the value stored in the
WrkString work field a commarea field in the SECCA program where it is modified and returned.
- Create the InvokeSECCA Operation
-
- From the Interface Mapper, click
Operation >
New.
- In the
Name field, type
InvokeSECCA.
- Under
Select program, click
SECCA.
The
Select input commarea and
Select output commarea boxes each list two commareas from which to choose. This is because the Interface Mapper has found two candidate commareas in the SECCA program.
- Click each of the commarea list entries to compare the two. From studying the code in the SECCA program, we know that the program moves the contents of
dfhcommarea to
wrkcommarea before performing business logic using the commarea fields. Therefore, we want this operation to use the
wrkcommarea for both input and output.
- Click
SECCA(2) under both
Select input commarea and
Select output commarea.
- Do not check
Create Default Mappings. In this tutorial, we create the mappings manually.
- Click
OK to create the InvokeSECCA operation.
The Interface Mapper shows the input and output commarea fields in the left panes.
- Create a Field Assignment
- To pass the value we stored in the
WrkString work field during the InvokeINCCA operation to the
in-string commarea field, we need to create a field assignment.
- In the
Assignments pane, right-click and select
New Assignment from the context menu.
- From the
Assign to drop-down list, select
wrkcommarea.in-string.
- From the
Field/Operation1 drop-down list, select
WrkString.
- Click
OK to save the assignment.
- Map an Interface Output Field
- The SECCA program logic takes the value of
in-string, prepends "SECCA received: " to it and stores the result in
out-string. To send the value back to our service interface, we need to map
out-string to an output interface field.
- Drag
out-string from the
Output Commarea pane to the
Interface Fields pane.
- From the
Interface Fields pane, rename
out-string to
SECCAOutString.
- Click
File > Save CICSCommareaWS.svi to save the completed InvokeSECCA Operation.
- Close the Interface Mapper.