days_since_from_date

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
hhh
Participant
Posts: 86
Joined: Tue Aug 02, 2005 7:39 am

days_since_from_date

Post by hhh »

Hi All,

Have requirement of to get number of days between two dates, have used date format as yyyy-mm-dd in DaysSinceFromDate function . While running datastage job , getting few warnings like : "DW_AcctArrg_Tfm1,4: Conversion error calling conversion routine days_since_from_date data may have been lost" .

I have checked that date value is yyyy-mm-dd only despite getting above message. Length is given int 32 in stage variable. This stage variable is being used in calculation of other fields.

Could you please guide on same to eliminate such problem. :(

Thanks in advanced
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you really got dates, or strings? If you've really got dates, why are you specifying a format string, and where?
If you have strings, check your data for any date that does not conform to your specified format (for example, a single digit day or month number).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Post samples of your date data and the actual derivation you are using.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply