$HexA: Difference between revisions
(Automatically generated page update) |
mNo edit summary |
||
Line 2: | Line 2: | ||
<span class="pageSubtitle">Convert hexadecimal string to EBCDIC equivalent</span> | <span class="pageSubtitle">Convert hexadecimal string to EBCDIC equivalent</span> | ||
<p class="warn"><b>Note: </b>Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $HexA function is the [[HexToEbcdic (String function)]].</p> | <p class="warn"><b>Note: </b>Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $HexA function is the <var>[[HexToEbcdic (String function)|HexToEbcdic]]</var> function.</p> | ||
This function converts a hexadecimal string to its EBCDIC equivalent. | This function converts a hexadecimal string to its EBCDIC equivalent. |
Revision as of 20:53, 18 July 2013
Convert hexadecimal string to EBCDIC equivalent
Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $HexA function is the HexToEbcdic function.
This function converts a hexadecimal string to its EBCDIC equivalent.
The $HexA function accepts one argument and returns a string result.
The first argument is a string containing the characters 0 - 9 and A - F. All other characters are treated as 0. If the number of characters in the first argument is odd, the first argument is considered to begin with an extra 0 character.
Syntax
%EBCDIC = $HexA(hex_string)
%EBCDIC is set to the EBCDIC equivalent of hex_string.
Examples
The following statement sets %JUNK to the string 123
(EBCDIC X'F1F2F3'):
%JUNK = $HexA('F1F2F3')
And this statement sets %JUNK to EBCDIC X'0102', which is a non-displayable string.
%JUNK = $HexA('102')
Products authorizing $HexA
- Sirius functions
- Fast/Unload User Language Interface
- Janus Open Client
- Janus Open Server
- Janus Sockets
- Janus Web Server
- Japanese functions
- Sir2000 Field Migration Facility