Information icon IBM Information Server, Version 8.1
Feedback

Ascii Function

Converts the values of characters in a string from EBCDIC to ASCII format.

Syntax

Ascii (string)

string is the string or expression that you want to convert. If string is a null value, a null value is returned.

Remarks

The Ascii and Ebcdic functions perform complementary operations.

Note: If NLS is enabled, this function might return data that is not recognized by the current character set map.

Example

This example shows the Ascii function being used to compare a string of EBCDIC bytes:

EbcdicStr = Char(193):Char(241)             ;* letter A digit 1 in EBCDIC
AsciiStr = Ascii(EbcdicStr)                  ;* convert EBCDIC to ASCII
If AsciiStr = "A1" Then            ;* compare with ASCII constant
...                                         ;* ... this branch is taken
EndIf

PDF This topic is also in the IBM WebSphere DataStage Server Job Developer Guide.

Update icon Last updated: 2008-09-30