date format to insert into oracle table

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
pongal
Participant
Posts: 77
Joined: Thu Mar 04, 2004 4:46 am

date format to insert into oracle table

Post by pongal »

hi,
i want to insert date and time in oracle date format and the field datatype is timestamp.

for eg:- 8/17/2005 11:35:15 AM
can anybody give the exact function in ds.

i have tried oconv(iconv(@Date,"DYMD"),"D/MDY[2,2,4]"):" ":oconv(@Time,"MTHS")
but i am getting an error "Returned timestamp format not recognised for field EXPDATE"
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

pongal,

Iconv/Oconv don't work in Parallel extender. You should use StringToTimestamp(in.DateString,[optional formatting])
Post Reply