Previous Topic: Examples

Next Topic: The QUIT command

Usage

If the command-key value is not supplied or is not one of the above acceptable values, it is assumed that ENTER should be sent (that is, both “SEND” and “SEND JUNK” are equivalent to “SEND ENTER”).

A SEND command sends the current screen buffer, which can contain data changed as a result of previous script commands, for processing by the application program. If the optional QUIT is not specified, the script is still considered to be 'active' and when control returns to the Web Option server from the application program, it resumes script processing from the point following the SEND command. If the optional QUIT is specified, the script is deactivated, and normal interactive processing occurs when control returns to the Web Option server.

Thus, the following two script fragments result in the same overall processing, but the second results in an additional processing loop:

SEND ENTER QUIT
or
SEND ENTER
QUIT

It must be emphasized that if a SEND command is not included in the script, any processing performed by the script to change data on the screen is ignored and is not processed by the application program.