Hi,
I have a input data Varchar(24) coming as 214584654200708086120001.
I need the output as Integer(24).
I tried using AsInteger function. But, the output is giving me a completely different number.
Please provide a solution for this....
Query regarding AsInteger function
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 9
- Joined: Thu Nov 29, 2007 10:45 pm
Re: Query regarding AsInteger function
forget about datastage, integer can only have 2147483647 as max value. AsInteger function will not work for values more than this. i doubt if long or bigint will work eithersuchit1983 wrote:Hi,
I have a input data Varchar(24) coming as 214584654200708086120001.
I need the output as Integer(24).
I tried using AsInteger function. But, the output is giving me a completely different number.
Please provide a solution for this....
what kind of a number is this 24 byte value.i mean what business requirement can be like that..chek your requirement.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Please advise what database supports Integer(24) as a data type.
If there is none (as I believe), why do you require it?
The largest integer data type supported by DataStage is BigInt (or int64), the maximum value of which is 9,223,372,036,854,775,807 (only 19 digits, or 20 digits for uint64).
If there is none (as I believe), why do you require it?
The largest integer data type supported by DataStage is BigInt (or int64), the maximum value of which is 9,223,372,036,854,775,807 (only 19 digits, or 20 digits for uint64).
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.