Information icon IBM Information Server, Version 8.1
Feedback

Seq Function

Converts an ASCII character to its numeric code value.

Syntax

Seq (character)

character is the ASCII character to be converted. If character is a null value, null is returned.

Remarks

The Seq function is the inverse of the Char function.

Example

This example uses the Seq function to return the number associated with the first character in a string:

MyVal = Seq("A")      ;* returns 65
MyVal = Seq("a")      ;* returns 97
MyVal = Seq(" 12")    ;* returns 32 - first char is a space
MyVal = Seq("12")        ;* returns 49 - first char is digit "1"

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

Update icon Last updated: 2008-09-30