Query regarding AsInteger function

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
suchit1983
Participant
Posts: 9
Joined: Thu Nov 29, 2007 10:45 pm

Query regarding AsInteger function

Post by suchit1983 »

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....
pavankvk
Participant
Posts: 202
Joined: Thu Dec 04, 2003 7:54 am

Re: Query regarding AsInteger function

Post by pavankvk »

suchit1983 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....
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 either

what kind of a number is this 24 byte value.i mean what business requirement can be like that..chek your requirement.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply