Command Reference 5-25
CHR
Purpose Converts alphanumeric data to numeric data.
Syntax CHR
asc-field
,
int-field
Process The CHR command converts
asc-field
(containing alphanumeric data) to a numeric
format, placing the result in
int-field
.
Asc-field and Int-field
contain the data to translate and the translated data,
respectively. They can be one of the following:
Asc-field and Int-field
Description
INPUT Input Buffer
SCRATCH Scratch Buffer
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(Field1) [Index]
Array Buffer Field
Asc-field only:
String
ASCII string delimited
by double quotes
Example
This example takes alphanumeric data from the TAASCII field, converts it into
numeric data, and stores the result in the TAINT field.
CHR TAASCII, TAINT
See Also ASC