Problem while displaying data into CSV

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
avneeshrai
Participant
Posts: 12
Joined: Wed Jan 02, 2008 11:45 pm
Location: Hyderabad

Problem while displaying data into CSV

Post by avneeshrai »

Hi all,
There is a column with datatype date in table,we are creating csv file as target and when tried to open csv file the records in same columns displaying as (00:00.0)instead of (2004-03-01 12:00:00 AM).

We have tried different ways by changing data type (Varchar, Date, Timestamp, Real, Nvharchar, Longvarchar) of the column in the csv file but result is same.

Can any one help me to solve it.
Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you take the problem a step at a time it might turn out to be a simple solution. What text is contained in this field in the CSV file? If you define that field as VarChar of appropriate length, what is displayed in the sequential file stage with view data?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

To be certain, view the file outside of DataStage (say, with 'vi'), what do you see for that column? If it is bad there then your transformation is failing.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply