Invalid Julian day

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
abyss
Premium Member
Premium Member
Posts: 172
Joined: Thu May 22, 2014 12:43 am

Invalid Julian day

Post by abyss »

Hi all
I made a job involves timestamp comparison but it keep give me Invalid Julian day error.
the job itself is nothing too special
Image

and i am sure the problem is from this constraint
Image

Code: Select all

NullToValue(Trx_Dim.P_TRANSACTION_TS, "2099-21-31-00.00.00.000000") <= Trx_Dim.DATE and NullToValue(Trx_Dim.C_TRANSACTION_TS, "2099-21-31-00.00.00.000000") <= Trx_Dim.DATE and NullToValue(Trx_Dim.S_TRANSACTION_TS, "2099-21-31-00.00.00.000000") <= Trx_Dim.DATE
the TRX_DIM.DATE is a timestamp typed variable. I think the problem is from the string to timestamp conversion. if i change NullToValue(Trx_Dim.P_TRANSACTION_TS, "2099-21-31-00.00.00.000000") to CurrentTimestamp() it works. but i just can't get this statement works! I did lots of research and experiments but still can't fix the problem, any ideas?

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

Post by ray.wurlod »

Your default timestamp format (which you can view/change in the Administrator client) does not include fractional seconds.

Therefore you must do one of the following things:
  • change your StringToTimestamp() functions to include a format string that includes six fractional seconds

    change your hard coded timestamp strings so that they do not have fractional seconds

    change your default timestamp format for the project
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Is it 2099-21-31 or 2099-12-31 ? :)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yah, that too. :wink:
-craig

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