TYPE

Sends characters to the server as if they were typed at a personal computer.

Syntax

TYPE text;

Syntax Description

text
is the user-specified string of characters sent to the server.

Details

The TYPE statement sends characters to the server as if they had been typed on a personal computer that is attached to that operating environment. For example, in a script that automatically signs on to the server, you use a TYPE statement to issue the server sign-on command.
text can be any combination of the following:
  • literal string(s) that are enclosed in quotation marks, such as 'any string'.
  • hexadecimal character string(s) that are enclosed in quotation marks, such as '01020304X'.
  • 3270 key mnemonics if you have a 3270 connection.
If you use TYPE statements in the script and some characters that are specified by the statement are not typed, try using the WAITFOR statement to establish a pause in script execution between TYPE statements.
To use a TYPE statement that has more than 80 characters in a sign-on script, divide the TYPE statement into two or more TYPE statements. To divide the TYPE statement, insert a hyphen (-) at the division point. For example, consider the following TYPE statement:
type "sas options ('dmr comamid=tcp')"
enter;
To divide this statement, change it as follows:
type "sas options ('dmr comamid=-" enter;
type "tcp')" enter;
Note: Do not insert spaces before or after the hyphen.

ASCII Control Character Mnemonics

To specify an ASCII control character in the TYPE statement, use a mnemonic representation of the character. The following table lists the ASCII control characters and the corresponding mnemonics, decimal codes, and hexadecimal values.
  • Do not enclose an ASCII mnemonic in quotation marks.
  • In the TYPE statement, use only the values from decimal 0 to 127 (hexadecimal 0 to 7F). Do not use any of the extended ASCII characters whose values are greater than 127 (decimal).
ASCII Character Mnemonics
ASCII Control Character
Mnemonic Representation
Decimal Value
Hexadecimal Value
Line feed
LF or CTL_J
10
0A
Carriage return
CR or CTL_M
13
0D