2008 Oct 16 11:27 AM
when i am converting hexadecimal number "bdf" to decimal number .its giving me ans 189. but output should be 3039. how shd i remove this prob. here i am showing the code which i am using.
data value1 type x value 'BDF'.
data value2 type i.
move value1 to value2.
write value2.
2008 Oct 16 11:43 AM
HI ,
when i am converting hexadecimal number "bdf" to decimal number .its giving me ans 189. but output should be 3039. how shd i remove this prob. here i am showing the code which i am using.
data value1 type x value 'BDF'.
data value2 type i.
move value1 to value2.
write value2.
SHWETA
2008 Oct 16 11:43 AM
Go into debug and check the value of "value1". You'll see your error quite quickly...
DATA value1 TYPE x LENGTH 2 VALUE '0BDF'.