Conversion error calling conversion routine date_from_julian

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
xogoblin
Participant
Posts: 2
Joined: Fri Jul 31, 2009 5:21 am

Conversion error calling conversion routine date_from_julian

Post by xogoblin »

Hi,
I was designing a PX job which takes as input a Timestamp. Then i trasform this in a date with a timestamptodate. Then I tried using the DateFromJulianDay function in my transformer but when i run this job, it is return me this error:

Conversion error calling conversion routine date_from_julian

All suggestions are welcome.
Thanks.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What is your ultimate goal here? You said you already converted your timestamp to a date which is why the DateFromJulianDay() function fails - you don't have a julian day for it to convert to a date.
-craig

"You can never have too many knives" -- Logan Nine Fingers
xogoblin
Participant
Posts: 2
Joined: Fri Jul 31, 2009 5:21 am

Post by xogoblin »

I try to explane better.

My date is a Timestamp. In my trasformer I create a Variable stage called ERIPinival. The derivation is
JulianDayFromDate(timestamptodate(in_D_EDW_EAUT.DATA_ERIP_DATA_INI_VAL)). Then i assigned this Variable to another variable stage called MAXinival. The derivation is DateFromJulianDay(max(ERIPinival)). And a the end I assign this variable tu a column date in trasformer. when i tried to run the job it returns the error
Post Reply