To enable this service interface to terminate the application as if from a terminal, we must add assignment to the Show Data operation that return the application to the DEMO91 screen -- the main menu for our application. We do this by assigning the string value X to FLD0056 and also adding an ATTENTION ID assignment for the Enter key as follows:
- In the Assignments pane, right-click and select New Assignment from the popup menu.
- From the Assign to drop-down list, click FLD0056.
- In the Field 1/Operand 1 field, type X, which is the value that tells the application to return to the main menu screen.
- Click OK.
- In the Assignments pane, right-click and select New Assignment from the popup menu.
- From the Assign to drop-down list, click ATTENTION ID.
- From the Field 1/Operand 1 drop-down list, click ENTER.
- Click OK.
- Save the service interface.
This completes the Show Data operation.