Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
ASCII Function (DataBasic) (m618703+ascii_f.htm)
Converts a string value from EBCDIC to ASCII.
ASCII(expression)
expression is any valid DataBasic expression or any string, substring, or value; expressed as a variable name, a value, or a string enclosed in quotes.
This function is useful when reading EBCDIC format tapes with the READTstatement.
READT X ELSE STOP
Y = ASCII(X)
Reads a record from the magnetic tape unit and assigns the value to variable X. Assigns ASCII value of record to variable Y.
A = "Z" B = ASCII(A) PRINT B
Assigns the ASCII value of variable A to variable B and prints B.