date problem

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
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

date problem

Post by adams06 »

these are the souce and target

source oracle
column :U_LOAD_TS sqltype timestamp length:19

target oracle
column :U_LOAD_TS sqltype timestamp length:38

i am getting error

Attempt to convert String value "26-APR-06" to Timestamp type unsuccessful
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What stages are you using? Generated or custom sql?
-craig

"You can never have too many knives" -- Logan Nine Fingers
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

custom sql.

Post by adams06 »

custom sql.
chulett wrote:What stages are you using? Generated or custom sql? ...
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

Re: custom sql.

Post by adams06 »

adams06 wrote: stage :oracle OCI
custom sql.
chulett wrote:What stages are you using? Generated or custom sql? ...
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You must use TO_DATE(...) functions on all columns that are DATE or TIMESTAMP datatypes. DS passes text strings that look like dates to Oracle, but your SQL must include this.

If you use GENERATED SQL, you'll see that DS automatically adds TO_DATE when writing and TO_CHAR when reading using the ORAOCI stages.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply