Conversion

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
rsunny
Participant
Posts: 223
Joined: Sat Jul 03, 2010 10:22 pm

Conversion

Post by rsunny »

Hi,

Is there any inbuilt function to Convert character to hexadecimal.

Thanks in advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

Oconv(inLink.TheCharacter,"MX0C")
or

Code: Select all

Oconv(inLink.TheCharacter,"MX")
depending on the result you want.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rsunny
Participant
Posts: 223
Joined: Sat Jul 03, 2010 10:22 pm

Post by rsunny »

Thanks Ray ...
rsunny
Participant
Posts: 223
Joined: Sat Jul 03, 2010 10:22 pm

Post by rsunny »

Hi ray,

Is there any function to convert the hexadecimal to hexadecimal again until it is a pure number. for example
Oconv("J","MX0C")=4A but i want the result as 441 which is that A shoukld be again converted to hexadecimal so if the input is like AJ then output should be 41441.
Is that some thing do i need to check each character in string and then convert each character into hexadecimal and check if there are characters , if there are then convert again or is there any other alternative?
Any help is really appreciated

Thanks in advance
Post Reply