The Enter Account Number operation exposes the account number of the record to be retrieved. It automatically sets the request
type to display information.
- Click
Operation >
New.
- In the
Operation Name field, type
Enter Account Number.
- From the
Active Screen drop-down list, click
ACCTSET.ACCTMNU. This is the name of the main menu of the ACCT application.
- Leave the default value,
ANY SCREEN, in the
Previous Screen field.
- Leave the
Transaction ID field blank. This operation does not start a transaction.
- Leave
Create Default Mappings unchecked.
- Click
OK. This returns you to the
Interface Mapper and shows the CICS Screen ACCTSET.ACCTMNU.
We're now ready to map our interface fields and make some assignments for this operation. As we learned from running this
application in its original form, we need to provide the application with a D (for display) in the REQUEST TYPE field and
an account number in the ACCOUNT field in order to retrieve information about an account. We will start with specifying the
input field for the account number.
- On the
CICS Screen pane, locate the
ACCTM field by hovering over the entry fields. ACCTM is located to the right of the ACCOUNT label. It is the field where users
enter the account number.
- Click and drag the ACCTM field to the
Interface Fields pane and drop it there.
The name ACCTM is not particularly descriptive. Because this field is really the input field for the account number, we will
rename it in the
Interface Mapper so that it is more recognizable. The name we use here will appear as the field label in our generated Windows Forms client.
- In the
Interface Fields pane, double-click
ACCTM.
- In the
Name field, type
AccountNumber. The other fields on this dialog box are accurate so no additional adjusting is necessary here.
- Click
OK.
Notice that the
Mappings pane shows the interface field with its new name, AccountNumber, mapping to the COBOL field ACCTM.
Now we will make some assignments that automatically set the value for the request to D for display, and set the attention
identifier.
- On the
CICS Screen pane, hover over the input field next to the REQUEST TYPE label. Note that the name of the input field is
REQM.
- In the
Assignments pane, right-click and select
New Assignment from the popup menu.
- From the
Assign to drop-down list, click
REQM.
- In the
Field 1/Operand 1 field, type
D, which is the value that tells the application to display information.
- 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. This is the field that defines which AID key (for example,
Enter,
PF8, etc.) should be used.
- From the
Field 1/Operand 1 drop-down list, click
ENTER.
- Click
OK.
- Click
File > Save CICSScreenWS.svi to save the completed Enter Account Number operation.