why does Datastage not support Datatype INT8(serial8)

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

why does Datastage not support Datatype INT8(serial8)

Post by singhald »

Hi all
I am suffering with this problem.
Getting database repository interface error stating that
Datastage does not support Datatype INT8(serial8)

The informix database it looks for a field with a
datatype Serial8 which is sequential autogenerated number.

Why does datastage doesnot support this datatype?
how do we configure datastage server to make it underatnd
this datatype as well?

Deepak
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
Try mapping it as Data type BIGINT


Ketfos
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

Post by singhald »

hi

i have tried this ,
but this is also not working it giving same error type message
"Data type BigInt define in that coloumn is not supporting"


plz give me another sol for this

bye
prasoon
Participant
Posts: 29
Joined: Thu Mar 30, 2006 6:43 am

Post by prasoon »

Hi All,
Can Anybody suggest possible solution for this.

Thanks in advance.
singhald wrote:hi

i have tried this ,
but this is also not working it giving same error type message
"Data type BigInt define in that coloumn is not supporting"


plz give me another sol for this

bye
Regards,
Prasoon
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In your SELECT use the CAST function.
prasoon
Participant
Posts: 29
Joined: Thu Mar 30, 2006 6:43 am

Post by prasoon »

Hi ArndW,
I used CAST function but it's not working at all.still same error.....

[/quote]JobName..ObjectName:Informix data type 'INT8' for column 'a_abc_uid' is not supported in SQL statement:
SELECT a_abc_uid,column1,column2 FROM tablename.
JobName..ObjectName.DSLink1:DSP.Open GCI $DSP.Open error -2.

While in the table definition a_abc_uid define as Serial8
Even I used TRUNC function but it's not working.
Please help me out!!
[/b]
Regards,
Prasoon
prasoon
Participant
Posts: 29
Joined: Thu Mar 30, 2006 6:43 am

Post by prasoon »

Hi ArndW,
I used CAST function but it's not working at all.still same error.....

[/quote]JobName..ObjectName:Informix data type 'INT8' for column 'a_abc_uid' is not supported in SQL statement:
SELECT a_abc_uid,column1,column2 FROM tablename.
JobName..ObjectName.DSLink1:DSP.Open GCI $DSP.Open error -2.[quote]

While in the table definition a_abc_uid define as Serial8
Even I used TRUNC function but it's not working.
Please help me out!!
Regards,
Prasoon
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I don't see a CAST at all in your SELECT; what did you try?
prasoon
Participant
Posts: 29
Joined: Thu Mar 30, 2006 6:43 am

Post by prasoon »

I usedCAST function like this.....
SELECT CAST(o_abc_uid as Numeric),column1,column2 FROM tablename
Please let me know, it is the correct way or not!! :(
ArndW wrote:I don't see a CAST at all in your SELECT; what did you try? ...
Regards,
Prasoon
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

How about CAST(o_abc_uid as Integer), what happens when you attempt that? If it doesn't work, what is the error message?
prasoon
Participant
Posts: 29
Joined: Thu Mar 30, 2006 6:43 am

Post by prasoon »

Yes ArndW,
still I'm getting same error.
ArndW wrote:How about CAST(o_abc_uid as Integer), what happens when you attempt that? If it doesn't work, what is the error message? ...
Regards,
Prasoon
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How about

Code: Select all

SELECT o_abc_uid + 0 FROM tablename...
Hopefully the arithmetic will perform a legal implicit CAST.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Odd, the message reads
Informix data type 'INT8' for column 'a_abc_uid' is not supported in SQL statement
. That looks like a pure DML error. Can you issue this SQL in your command line?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Shouldn't the answer also involve changing the datatype in the source stage to something supported - like Integer? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I think this is the source thats creating the problem. What about odbc stage. Can you use the odbc stage to send a select?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply