$E2A: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
Line 12: Line 12:
The returned result is a string which is the ASCII equivalent of the (presumed) EBCDIC input string.
The returned result is a string which is the ASCII equivalent of the (presumed) EBCDIC input string.
==Syntax==
==Syntax==
<p class="syntax"><span class="term">%ASCII</span> = <span class="literal">$E2A</span>(<span class="term">ebcdic_val</span>)
<p class="syntax"><span class="term">%ascii</span> = <span class="literal">$E2A</span>(<span class="term">ebcdic_val</span>)
</p>
</p>
<p>
<p>
</p>
</p>
<p>%result is set to the EBCDIC-to-ASCII translation of '''ebcdic_val'''.</p>
<p>%ascii is set to the EBCDIC-to-ASCII translation of '''ebcdic_val'''.</p>




Line 24: Line 24:


$E2A is available only in <var class="product">[[Sirius Mods]]</var> Version 6.8 and later.
$E2A is available only in <var class="product">[[Sirius Mods]]</var> Version 6.8 and later.
==Products authorizing {{PAGENAMEE}}==  
==Products authorizing {{PAGENAMEE}}==  
<ul class="smallAndTightList">
<ul class="smallAndTightList">

Revision as of 00:06, 13 April 2013

Translate EBCDIC to ASCII

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $E2A function is the EbcdicToAscii (String function). For a full list of string and numeric conversion functions see List of String methods and List of Float methods.

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

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

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

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

Syntax

%ascii = $E2A(ebcdic_val)

%ascii is set to the EBCDIC-to-ASCII translation of ebcdic_val.


The inverse of $E2A is $A2E.

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

$E2A is available only in Sirius Mods Version 6.8 and later.

Products authorizing $E2A

Products authorizing $E2A