DataBasic Reference > Statements and Intrinsic Functions > E > EBCDIC Function

Comment on this topic

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)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

EBCDIC Function

Converts a string value from ASCII to EBCDIC.

Syntax

EBCDIC(expression)

Syntax Elements

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.

Comment

This function is useful when writing EBCDIC format tapes with the WRITET statement.

Examples

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.

RealityV15.1 (MoTW) Revision 7Comment on this topic