Hi, I have a requirement where I need to convert hexadecimal value coming from source to Decimal in the target.
Suppose if the source value is X'0055', than the target should be 85. Can some one suggest? Should we do it by calculations, like dividing by 16 and than considering the remainder and quotient? Or is there any other way?
Thank You
How to convert hexadecimal value to decimal in data stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 16
- Joined: Wed Apr 07, 2010 10:44 pm
-
- Participant
- Posts: 51
- Joined: Sat Dec 09, 2006 3:32 am
Re: How to convert hexadecimal value to decimal in data stag
Actually you can create a simple c function and a routine to be used in a transformation stage.radhika7983 wrote:Hi, I have a requirement where I need to convert hexadecimal value coming from source to Decimal in the target.
Suppose if the source value is X'0055', than the target should be 85. Can some one suggest? Should we do it by calculations, like dividing by 16 and than considering the remainder and quotient? Or is there any other way?
Thank You
M. Nayer