$A2E: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
m (misc formatting and links) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
<span class="pageSubtitle">Translate ASCII to EBCDIC</span> | <span class="pageSubtitle">Translate ASCII to EBCDIC</span> | ||
<p class="warn"><b>Note: </b> | <p class="warn"><b>Note:</b> Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the <var>$A2E</var> function is the [[AsciiToEbcdic (String function)]].</p> | ||
The <var>$A2E</var> function returns a string | The <var>$A2E</var> function returns a string that is the EBCDIC equivalent of the (presumed) ASCII input string. <var>$A2E</var> is [[Longstrings|Longstring]] capable, that is, it can receive an input Longstring and will produce an output Longstring. | ||
< | ==Syntax== | ||
<p class="syntax"><span class="term">%ebcdic</span> = <span class="literal">$A2E</span>(<span class="term">ascii_val</span>) </p> | |||
<table> | |||
<tr><th>%ebcdic</th> | |||
< | <td>A string that is the ASCII-to-EBCDIC translation of <var class="term">ascii_val</var>. </td></tr> | ||
</ | |||
< | <tr><th>ascii_val</th> | ||
<td>The string to be translated from ASCII to EBCDIC. </td></tr> | |||
</table> | |||
==Usage notes== | ==Usage notes== | ||
The inverse of <var>$A2E</var> is [[$E2A]]. | <ul> | ||
<li>The inverse of <var>$A2E</var> is <var>[[$E2A]]</var>. </li> | |||
$A2E uses the " | <li><var>$A2E</var> uses the Janus "STANDARD" ASCII-to-EBCDIC translation tables, and it provides no mechanism for overriding these tables. However, as described in [[Translate tables|translation tables]], you are able to modify the STANDARD tables if necessary. </li> | ||
<li>The <var>[[$Ebcdic]]</var> function provides the same type of translation as <var>$A2E</var>, but it is only available if the FUNU module is linked in, it does not use the Janus translation tables, and it is <em>not</em> Longstring capable. </li> | |||
</ul> | |||
==Products authorizing {{PAGENAMEE}}== | ==Products authorizing {{PAGENAMEE}}== | ||
Line 32: | Line 36: | ||
<li>Japanese functions</li> | <li>Japanese functions</li> | ||
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li> | <li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li> | ||
</ul> | </ul> | ||
[[Category:$Functions|$A2E]] | [[Category:$Functions|$A2E]] |
Latest revision as of 22:07, 9 January 2018
Translate ASCII to EBCDIC
Note: Many $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 that 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.
Syntax
%ebcdic = $A2E(ascii_val)
%ebcdic | A string that is the ASCII-to-EBCDIC translation of ascii_val. |
---|---|
ascii_val | The string to be translated from ASCII to EBCDIC. |
Usage notes
- The inverse of $A2E is $E2A.
- $A2E uses the Janus "STANDARD" ASCII-to-EBCDIC translation tables, and it provides no mechanism for overriding these tables. However, as described in translation tables, you are able to modify the STANDARD tables if necessary.
- The $Ebcdic function provides the same type of translation as $A2E, but it is only available if the FUNU module is linked in, it does not use the Janus translation tables, and it is not Longstring capable.