Hi everyone,
I need to conver a hex number to an integer. Is there any built-in function in Datastage that does it? or I have to write my own funtion.
convert hex to integer
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
At least two built-in functions.
DTX(n)
Iconv(n, "MX")
You can also use variants like Iconv(n, "MCD") and Iconv(n, "MCDX") - or maybe that last one's Iconv(n, "MCXD") - it's been a while since I played with them. Check out the DataStage BASIC manual or on-line help.
Enjoy!
DTX(n)
Iconv(n, "MX")
You can also use variants like Iconv(n, "MCD") and Iconv(n, "MCDX") - or maybe that last one's Iconv(n, "MCXD") - it's been a while since I played with them. Check out the DataStage BASIC manual or on-line help.
Enjoy!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: