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.
RealityV15.1Online Documentation (MoTW) Revision 7
EBCDIC Function (DataBasic) (m618703+ebcdic_f.htm)
Converts a string value from ASCII to EBCDIC.
EBCDIC(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 writing EBCDIC format tapes with the WRITET statement.
X = "!" Y = EBCDIC(X) PRINT Y
Prints the EBCDIC value of variable X, which is a Z.
B = EBCDIC(A)
WRITET B ELSE STOP
Converts the value of string A from ASCII to EBCDIC and assigns it to variable B. The contents of B are then written to tape.