Enter—Echo function
The Enter AID requests that ITPECHO perform the standard echo function on the input data from the panel. Essentially, the 3270 fields are stripped out and the remaining content is sent back with a 3270 WRITE command.
ITPECHO assumes that the 3270 in session has at least a 24x80 panel display. After you log on, ITPECHO formats the panel into two logical fields, the top (protected) and the bottom (unprotected). The cursor is placed at the start of the unprotected input field. The protected field actually starts in row 24, column 80 of the lower right corner, and continues into the top half of the panel.
WELCOME TO ITPECHO. ENTER=ECHO CLEAR=RESTORE 5/6=STRING REPEAT 9=REPEAT
ENTER DATA TO ECHO BELOW:
| AID | C | SBA | A | command | data |
| AID | 1-byte AID indicator |
| C | 2-byte Cursor Position |
| SBA | 1-byte Set Buffer Address command |
| A | 2-byte address of input field that contains the following data: |
| command | ITPECHO 3270 command string |
| data | Incoming “data” echoed. |
When ITPECHO receives an Enter AID, it strips the first six bytes from the RU, leaving a data portion. Then, ITPECHO places a 3270 WRITE command string into the output buffer. This string is followed by the data portion stripped off of the incoming RU. If the total length of the command string and data is longer than the allocated buffer size, the data is truncated to fit. You should be aware of this possible truncation when writing IF statements in message generation decks.
- The unprotected field is erased.
- The protected field is erased up to, but not including, the middle rows that contain permanent operator information.
- The data is written starting in row 1, column 1.
- The cursor is again positioned at the input field, ready for another message.