Input data stream example
This example shows the input data stream created using the data entry screen from the previous outbound data stream example.
To illustrate an inbound data stream, we assume that an
operator using the screen shown in
Figure 1
did the following:
- Put “123456” in the employee identifier field
- Put “ABC987” in the tag number
- Pressed ENTER, omittinglast the state field
Here is the resulting inbound data stream:
| Bytes | Contents | Notes |
|---|---|---|
| 1 | X'7D' | AID, in this case the ENTER key. |
| 2-3 | X'C3C5' | Cursor address: line 3, column 38, where the operator previously used it after the last data keystroke. |
| 4 | X'11' | SBA, indicating that a buffer address follows. |
| 5-6 | X'C26E' | Address of line 3, column 15, which is the starting position of the field to follow. |
| 7-12 | '123456' | Input, the employee number entered by the operator. |
| 13-15 | X'11C3D1' | SBA sequence indicating a buffer address of line 3, column 32. |
| 16 | X'1D' | SF, indicating another input field follows. |
| 17-22 | 'ABC987' | Input field: plate number. Notice that only six characters came in from a field that was eight long, because the remaining null positions were not completed by an operator. |
The third input field (the state code) does not appear in the input data stream. This is because its MDT did not get turned on; it was set off initially, and the operator did not turn it on by keying into the field. Note also that no SF is required at byte 7 because CICS® normally issues a Read Modified All.