Problem in loading Integer Datatype data

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
hemaarvind1
Participant
Posts: 50
Joined: Mon Jan 21, 2008 9:35 am

Problem in loading Integer Datatype data

Post by hemaarvind1 »

Hi All,

I have a CSV file as a source which has one column 'XYZ"with Number data type. I load this file to an oracle table using Dynamic RDBMS stage. When I run the job, all the other columns populate correctly except for this "XYZ' column. There are different errors in different cases:

1. If I use Integer datatype for both source and target, it gives the error saying "XYZ has import error at offset{0d}( I guess this error should do something with the source file) and the job gets aborted.


2. If I use Varchar datatype for Source and Integer datatype for the target, it loads the data,however,it loads 0 instead of the actual value.

Could you please help me in getting this problem resolved.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Post samples of your actual input data, please.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Check that your metadata, particularly for Format, are correct. {0d} is carriage return character, which suggests DOS-style line terminator.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That too. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
sureshreddy2009
Participant
Posts: 62
Joined: Sat Mar 07, 2009 4:59 am
Location: Chicago
Contact:

More information

Post by sureshreddy2009 »

Hi,

You are reading csv file by using which stage.Please mention these details.
Suresh Reddy
ETL Developer
Research Operations

"its important to know in which direction we are moving rather than where we are"
gssr
Participant
Posts: 243
Joined: Fri Jan 09, 2009 12:51 am
Location: India

Post by gssr »

Is that column is your last column?? Check the record delimiter!
RAJ
Post Reply