Imprting Date 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
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

Imprting Date data

Post by DSRajesh »

Hi

I am facing problem in importing date format data from csv file.
where date format is "2008-09-12".

Please let me know how to resolve this issue?
RD
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Re: Imprting Date data

Post by priyadarshikunal »

DSRajesh wrote:Hi

I am facing problem in importing date format data from csv file.
where date format is "2008-09-12".

Please let me know how to resolve this issue?
First of all tell us what/how are you doing this.

why dont you just try to parse that inside DataStage after reading it as varchar if problem persists.

Regards,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What exactly is your issue?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That format should import OK if your date format string is "%yyyy-%mm-%dd", the year component always has four digits, the month component always has two digits, the day component always has two digits, and all the component values are valid in creating a date.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply