date warning

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
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

date warning

Post by rajan.n »

Hi ,
An intial intro to my self : am new to server jobs.
jst have a warning which aborts my job, i want to fix that warning,i need ur help.
the warning is like this:


Transformer_7: At row 1, link "DSLink8", while processing column "CNT_DT"
Value treated as NULL
Attempt to convert String value "2002-01-21" to Date type unsuccessful

can you pls help me in this issue.
thanks much in advance.
rajan.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Target database? Stage used? Derivation? Details, man, details! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

Post by rajan.n »

chulett wrote:Target database? Stage used? Derivation? Details, man, details! :wink: ...
hey chulett...:-D
am sorry ,
my source is seq and target is db2, there is only a transformer between the seq and DB2-api stage.

i tried using
Oconv(Iconv(T1.CNT_DT,"D-YMD"),"D-YMD[4,2,2]")
but did not worked.

thnx for ur reply ,was waiting for that.
rajan.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

DB2 wants dates in internal format, from what I recall. Try just the Iconv part and see how that works.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

Post by rajan.n »

chulett wrote:DB2 wants dates in internal format, from what I recall. Try just the Iconv part and see how that works. ...

what u said is perfect...!!
no warnings regarding this kind of.
thanks a lot,but there are other kind of warnings again the job has aborted,
anyhow am happy that one thing has resolved.
thanks a lot chullet..!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Excellent. Please mark the post as Resolved. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Keep in mind that this is true only for Date columns. For timestamps, the output should be in external format(if thats a word).
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply