seq file to oracle timestamp

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
suresh_dsx
Participant
Posts: 160
Joined: Tue May 02, 2006 7:49 am

seq file to oracle timestamp

Post by suresh_dsx »

hi guys,
i got a a flat file contains a column timestamp.
i am trying to send that in target .


i need to convert into character frist ...befroe i convert into a date format bcz my data is flat file .....
can any one give suggestion.......plz give me explantion
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

What format is your input Timestamp? Is it in acceptable format by Oracle. Else, you will need to use OConv and IConv functions to convert it into a format acceptable by Oracle. Also, How are you inserting data into Oracle. Is it User-defined sql or one of the default update actions available in the OCI stage? If later, then the stage itself wraps the timestamp values in TO_DATE function and you won't have to worry? Did you try doing any of these things and were not able to do so? Any error messages in particular.

More info needed.
Kris

Where's the "Any" key?-Homer Simpson
suresh_dsx
Participant
Posts: 160
Joined: Tue May 02, 2006 7:49 am

Post by suresh_dsx »

dd/mm/yyyy 00:00:00
that is the format in flat file
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok. Kris asked about five questions and you answered... one.
-craig

"You can never have too many knives" -- Logan Nine Fingers
suresh_dsx
Participant
Posts: 160
Joined: Tue May 02, 2006 7:49 am

Post by suresh_dsx »

hi kris007

did u see that format.this is format.

dd/mm/yyyy 00:00:00

give me some suggestion

thank you
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

Suresh,

Please try and answer all the questions by Kris. You will not be helping yourself by avoiding them.

If one of the members have raised some queries, its most likely that the others will raise the same. and moreover Kris raised those queries to understand your issue.

Please be patient and co-operate.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

All you need to do is to specify an appropriate date picture for the TO_DATE function in your INSERT or UPDATE statement.
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