Retrieving the ascii number for characters

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Retrieving the ascii number for characters

Post by gpbarsky »

Hola mis amigos....

I couldn't find any function to retrieve the ASCII number for a given character. I mean, given the "A" letter, I want the function to return me the 65 value (working with the ASCII table).

What is the name of this function ?

Thanks in advance.
:wink:
Guillermo P. Barsky
Buenos Aires - Argentina
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Seq() is the inverse of Char().
-craig

"You can never have too many knives" -- Logan Nine Fingers
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Re: Retrieving the ascii number for characters

Post by DeepakCorning »

The following function can help you-->

"Seq(character)"

EG-->

MyVal = Seq("A") ;* returns 65
Post Reply