DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
This topic has been marked "Resolved."
Author Message
dougcl



Group memberships:
Premium Members

Joined: 24 Jun 2010
Posts: 64

Points: 825

Post Posted: Fri Jul 30, 2010 3:29 pm Reply with quote    Back to top    

DataStage® Release: 8x
Job Type: Parallel
OS: Unix
Hi folks, Peek stage shows this data:

Code:
RECORDED_TIME:2008-09-23 11:36:00 EFFECTIVE_TIME:2008-09-20 03:14:00 TO_TIME:2008-09-20 14:10:00


Filter stage with this where clause:

Code:
RECORDED_TIME BETWEEN EFFECTIVE_TIME AND TO_TIME


or with this where clause:
Code:

RECORDED_TIME >= EFFECTIVE_TIME AND RECORDED_TIME < TO_TIME


either way results in this error:

Code:
Fatal Error: Invalid Julian day


What am I doing wrong? Does this comparison require a date datatype instead of a timestamp datatype?

Thanks,
Doug
Sreenivasulu


since February 2006

Group memberships:
Premium Members

Joined: 16 Oct 2003
Posts: 737

Points: 3646

Post Posted: Sun Aug 01, 2010 5:30 pm Reply with quote    Back to top    

You can use the isValid function to validate whether the input date is in the correct format.

Regards
Sreeni
Rate this response:  
Not yet rated
ArndW

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup

Joined: 16 Nov 2004
Posts: 14005
Location: Germany
Points: 79124

Post Posted: Mon Aug 02, 2010 2:47 am Reply with quote    Back to top    

What is the datatype of the EFFECTIVE_TIME and TO_TIME columns? Can you convert these explicitly to timestamp before the filter stage?

_________________
Image
Rate this response:  
Not yet rated
dougcl



Group memberships:
Premium Members

Joined: 24 Jun 2010
Posts: 64

Points: 825

Post Posted: Mon Aug 02, 2010 8:52 am Reply with quote    Back to top    

ArndW wrote:
What is the datatype of the EFFECTIVE_TIME and TO_TIME columns? Can you convert these explicitly to timestamp before the filter stage?


DataStage timestamp. All three are DS timestamp.
Rate this response:  
Not yet rated
ArndW

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup

Joined: 16 Nov 2004
Posts: 14005
Location: Germany
Points: 79124

Post Posted: Mon Aug 02, 2010 9:03 am Reply with quote    Back to top    

I just put together a quickie job, Row Generator with 2 timestamp colums and put them through a filter without any errors or warnings. If you add $OSH_PRINT_SCHEMAS to your job and look at the actua ...

_________________
Image
Rate this response:  
Not yet rated
dougcl



Group memberships:
Premium Members

Joined: 24 Jun 2010
Posts: 64

Points: 825

Post Posted: Mon Aug 02, 2010 5:46 pm Reply with quote    Back to top    

ArndW wrote:
add $OSH_PRINT_SCHEMAS to your job and look at the actual schemas going into your filter stage are they actually timestamp?


Code:
RECORDED_TIME: nullable timestamp;
EFFECTIVE_TIME: timestamp;
TO_TIME: nullable timestamp;


Doing the obvious and removing "nullable" led to a null error, so I think that must be the problem. I am getting a null in there, which is obviously not a julian day. Thanks for your help.
Doug
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours