# ASCII

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

# Description

The ASCIIfunction converts all the characters in the expression from the EBCDIC character set to the ASCII character set. It takes the general form:

ASCII(expression)
1

Where:

expression may return a data string of any form. The function will then assume that the characters are all members of the EBCDIC character set and translate them using a character map. The original expression is unchanged while the returned result of the function is now the ASCII equivalent.

An example of use is as:

READT EbcdicBlock ELSE CRT "Tape failed!"; STOP
AsciiBlock = ASCII (EbcdicBlock) ;* convert to ASCII
1
2

Go back to jBASE BASIC

Go back to Programmers' Reference Guide