$A2E: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
The returned result is a string which is the EBCDIC equivalent of the (presumed) ASCII input string.
The returned result is a string which is the EBCDIC equivalent of the (presumed) ASCII input string.


The $EBCDIC function provides the same translation as $A2E, but is only available if the FUNU module is linked in, and is also not longstring capable.
The [[$Ebcdic|$EBCDIC]] function provides the same translation as $A2E, but is only available if the FUNU module is linked in, and is also not longstring capable.
==Syntax==
==Syntax==
<p class="syntax"><span class="term">%ebcdic</span> = <span class="literal">$A2E</span>(<span class="term">ascii_val</span>)
<p class="syntax"><span class="term">%ebcdic</span> = <span class="literal">$A2E</span>(<span class="term">ascii_val</span>)

Revision as of 15:30, 9 January 2018

Translate ASCII to EBCDIC

Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $A2E function is the AsciiToEbcdic (String function).

The $A2E function returns a string which is the EBCDIC equivalent of the (presumed) ASCII input string. $A2E is longstring capable, that is, it can receive an input longstring and will produce an output longstring.

$A2E accepts one required argument and returns a string value.

The first argument is the string to be translated from ASCII to EBCDIC.

The returned result is a string which is the EBCDIC equivalent of the (presumed) ASCII input string.

The $EBCDIC function provides the same translation as $A2E, but is only available if the FUNU module is linked in, and is also not longstring capable.

Syntax

%ebcdic = $A2E(ascii_val)

%ebcdic is set to the ASCII-to-EBCDIC translation of ascii_val.

Usage notes

The inverse of $A2E is $E2A.

$A2E uses the "standard" ASCII-to-EBCDIC translation tables provided by Sirius, and it provides no mechanism for overriding these tables.

Products authorizing $A2E

Products authorizing $A2E