SQL Type Bit to Binary Data Conversion Problem

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

Post Reply
vans2003
Participant
Posts: 11
Joined: Thu Jan 27, 2005 10:38 am

SQL Type Bit to Binary Data Conversion Problem

Post by vans2003 »

Hi,
I am converting Bit into Binay datatype in Teradata(Byte) using server job..


I am getting the following error message...

**** 09:49:03 UTY0805 RDBMS failure, 3857: Cannot use value (or macro parameter) to match 'Level_Type'.

Can someone Please find me a solution...

early reply would be appreciated...

Thanks in Advance...

Thx.
Vans
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello Vans,

The column "Level_Type" has what definition in Teradata? Is the error dependant on the data you have (i.e. put in a fixed value in a transform for Level_Type) or does it abort on the first row?
vans2003
Participant
Posts: 11
Joined: Thu Jan 27, 2005 10:38 am

Bit to Binary Conversion error

Post by vans2003 »

Level_type has defined as BYTE(1) in Teradata..
when I import metadata into Job Binay is SQL Type..

level_type input values are 1,0, source is SQL server with datatype Bit

I got following error message ........

TD_Main_Test..TD_ProdMast_Main: Unable to start MultiLoad process : MultiLoad failed: Check MultiLoad report E:DATA\temp\Test_Bit.rpt for details..

.rpt file has the following error message...

**** 09:49:03 UTY0805 RDBMS failure, 3857: Cannot use value (or macro parameter) to match 'Level_Type'.

Thanks,
Vans
ArndW wrote:Hello Vans,

The column "Level_Type" has what definition in Teradata? Is the error dependant on the data you have (i.e. put in a fixed value in a transform for Level_Type) or does it abort on the first row?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Vans,

does it abort on row 1? If you specify a fixed value derivation of "1" in a transform for this column instead of using the incoming data from the source, is the error the same?
vans2003
Participant
Posts: 11
Joined: Thu Jan 27, 2005 10:38 am

SQL Type Bit to Binary Data Conversion Problem

Post by vans2003 »

Hi,
I am getting the following error message when I hardcode the value "1" in transform..

TD_Main_Test..TD_ProdMast_Main: Invalid SQL column type for column Sample_Exists in stage TD_Main_Test.TD_ProdMast_Main

TD_Main_Test..TD_ProdMast_Main.trg: DSP.Open GCI $DSP.Open error -100.



Thanks,
Vans
ArndW wrote:Vans,

does it abort on row 1? If you specify a fixed value derivation of "1" in a transform for this column instead of using the incoming data from the source, is the error the same?
billsklar
Participant
Posts: 17
Joined: Tue Jul 13, 2004 9:42 am

Post by billsklar »

Not sure if this will help but I needed to use the following command in the transformer when loading a binary value through DS:

Iconv(MappedColumn,"MX0C")

Apparently, DS converts binary to the numerical equivalent without this command.
vans2003
Participant
Posts: 11
Joined: Thu Jan 27, 2005 10:38 am

Post by vans2003 »

still has same problem..
I tried with Iconv(DSLink1.Level_type,"MX0C")
Source is Bit Type and Target is Binary Type(Teradata)
need conversion...

Any suggessions would be appreciate.

Thanks,
Vans
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Re: SQL Type Bit to Binary Data Conversion Problem

Post by ArndW »

Morning Vans2003,

I saw in the new error message
[TD_Main_Test..TD_ProdMast_Main: Invalid SQL column type for column Sample_Exists in stage TD_Main_Test.TD_ProdMast_Main
[/quote]

The the column in question is no longer Level_Type but Sample_Exists - what data type is that column?

(slowly but surely we are getting closer to a possible cause...)
vans2003
Participant
Posts: 11
Joined: Thu Jan 27, 2005 10:38 am

Post by vans2003 »

Sample_Exists and Level_Type are same binary datatypes on teradata

I am trying in two different jobs......


Thanks,
Vans
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Vans2003,

I wish it were easier, but it now looks like an issue best given to Ascential Support. I don't have TeraData here otherwise I'd give it a try... I can't recall if TeraData supports ODBC connectivity - if it does it is worth trying that interface, as I've found the error messages through ODBC tend to be more descriptive and informative than going directly.
Post Reply