Previous Topic: ENQ/DEQ NotesNext Topic: The HOSTKEYS Host Commands


The TYPE Host Command

The TYPE host command is used to type on the terminal keyboard as if it were the keyboard of the device it is simulating through the currently selected virtual terminal.

The TYPE command is a combination of text and 3278 key names, as the following examples illustrate:

TYPE TERM1 'k e,d'!ENTER

Note: If there was a space between k e, d and! ENTER, the result would be the typing of an additional space. In this case, this would not be significant, but in others it might be.

The following example issues an MCS reply command, the reply number, being in the REXX variable reply_nbr, and the response in the REXX variable mcs_response:

TYPE TERM1 'r 'reply_nbr','!QUOTE1||mcs_response||!QUOTE1||!ENTER

Note: This example used the minimum number of abuttal operators (||).