regarding the DB2 EE stage

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
srividya
Participant
Posts: 62
Joined: Thu Aug 25, 2005 2:31 am
Location: Ashburn,VA

regarding the DB2 EE stage

Post by srividya »

Hi

This is in regards to the DB2 EE Stage. We are loading data from a Sequential file to a DB2table using the EE Stage.
When we try to do this we have some special characters being loaded into the DB2 Table.
When we switched from EE stage to API stage the problem did not arise and the data was being loaded properly.

Any idea on why the special characters are being loaded when using a EE stage?

thanks ahead
Regards
Srividya
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not with so sparse a description. WHAT special values? Are the columns nullable? What are the data types of the affected columns? What values are in the source data? What transformations are being applied?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

Are you getting hex data in your character fields - like binary zeros at the end of the text?

For example, input is 'MYDATA' (string[6]), but the target field in DB2 is char(8) and you end up with 'MYDATA**' (where * = x'00')?

If so, it is probably either the padchar setting for the job or your input schema doesn't match your output schema (like in the above example where string[6] is being loaded into char(8) field). Check out this topic:

DB2 Enterprise Stage

Hope this helps,

Brad.
kura
Participant
Posts: 21
Joined: Sat Mar 20, 2004 3:43 pm

Re: regarding the DB2 EE stage

Post by kura »

Hi Divya,

Special character loaded could be Empty strings.

If that is case

When you use API stage it automatically append space in the space for character field. If it is EE stage that is not case. Explicitly add spaces in end.


[quote="srividya"]Hi

This is in regards to the DB2 EE Stage. We are loading data from a Sequential file to a DB2table using the EE Stage.
When we try to do this we have some special characters being loaded into the DB2 Table.
When we switched from EE stage to API stage the problem did not arise and the data was being loaded properly.

Any idea on why the special characters are being loaded when using a EE stage?

thanks ahead
Regards
Srividya[/quote]
Post Reply