Terminal Control Codes

#### Search Results

Search

# Terminal Control Codes

The Terminal Control Codes (TCCs) are used to specify terminal control options during use of Com-plete mapping functions. They can be specified during map creation and/or during program execution.

During map creation, TCCs are defined in the MAPSTART macro statement. During program execution, they are specified dynamically in the TCC field of the MRCB.

Valid TCCs are defined in the following table.

TCC | Definition
--- | ---
A | Sound the audible alarm.
B | Allow Com-plete to determine whether the screen should be erased before the write.
C | Always format the screen with constant fields for this map.
D | Do not format the screen. Even though a new map is requested, the format will not be written.
E | Erase unprotected fields.
F | Allow Com-plete to determine whether the screen is to be formatted.
K | Turn off all modified data tags.
L | Do not reset the keyboard.
M | Do not turn off modified data tags.
N | Do not erase unprotected fields.
P | Start the printer.
Q | Do not sound the audible alarm.
R | Reset the keyboard.
S | Do not start the printer.
W | Do not erase the screen before writing the format (constant fields).

Note
The use of the TCC M is supplied as a convenience to 3270 users only. Its use by applications with devices other than the 3270s may yield unpredictable results. The use of the Com-plete conversational mode terminal I/O feature eliminates the need for using modified data tags to store data at the terminal.

For formattable devices, the default TCCs are E, R, Q, S, B, F, and K.

The TCCs B and W function independently of codes E and N. Codes E and N are used to erase unprotected fields, while codes B and W are used to control the erasure of the entire screen format.