NET/MASTER Network Control Language (NCL) Reference Manual
A2E
Built-in Functions
106126 Tandem Computers Incorporated 4–5
Characters that have no EBCDIC equivalent are translated to ‘FF’x.
See also E2A, which translates EBCDIC to ASCII.
Examples
The hexadecimal string ‘C1C2C3F1F2F3’x can be displayed on your OCS window if
you use the C2X built-in function on the resulting EBCDIC string, as in the following
example. This example also shows how built-in functions can be nested:
ASAY: PROCEDURE
&A=A2E(‘414243313233’x,t)
&B=C2X(&A) /* now try it using a nested function */
&VAR1=C2X(A2E(‘414243313233’x,t))
SAY "THE CONVERTED STRING IS = "&VAR1 " OR " &B
END ASAY
The following example translates the ASCII text “here we go” to EBCDIC. As in the
previous example, you can display the hexadecimal string ‘8885998540A685408796’x if
you use the built-in function C2X on the resulting EBCDIC string:
SAY C2X(A2E(here we go,t))