Page 1 of 1

date portion

Posted: Tue Jan 16, 2007 12:49 pm
by kishoreramachandran
in the database it is a timestamp and i want only the date and i used left(dbvariable,10) and compared it with the date which is yyyy-mm-dd and it tells me bad timestamp external representation

Posted: Tue Jan 16, 2007 12:52 pm
by narasimha
More details please.
Can you also copy and paste the exact error messages, rather than typing it yourself.

Posted: Tue Jan 16, 2007 12:56 pm
by kishoreramachandran
I do not know i to copy from director and paste it reads as folllows
odbc_enterprise_5.0 error bad timestanp external representation

Posted: Tue Jan 16, 2007 1:01 pm
by narasimha
kishoreramachandran wrote:I do not know i to copy from director and paste it reads as folllows
Select the log entries which shows you the warnings/Errors.
If you double click on these log entries, you get "Event Details" window.
You can copy and paste from there.

Posted: Tue Jan 16, 2007 1:05 pm
by kishoreramachandran
ODBC_Enterprise_5.0: ERROR: Bad timestamp external representation ' $sym_date'

Posted: Tue Jan 16, 2007 1:14 pm
by kishoreramachandran
in job parameter i do not see a timestamp option

Posted: Tue Jan 16, 2007 1:21 pm
by DSguru2B
Change the timestamp to string and then try doing the comparison.

Posted: Tue Jan 16, 2007 1:25 pm
by kishoreramachandran
but that is a database variable how can i change that

Posted: Tue Jan 16, 2007 1:28 pm
by DSguru2B
Either in the sql select using TO_CHAR() or its equivalent for your database type or using the modify stage/transformer by using the timestamptostring() function.

Posted: Tue Jan 16, 2007 1:29 pm
by narasimha
Kishore,

Please elaborate on your problem.
You need to give an overview as to what you are doing, what stages your are using,how and where you are getting your errors.
This will help anybody to give you suggestions more precisely.

Posted: Tue Jan 16, 2007 7:51 pm
by kishoreramachandran
thanks to narasimha and dsguru.

Posted: Tue Jan 16, 2007 7:58 pm
by narasimha
Good it got resolved :)
Care to share the solution please.

Posted: Fri Jan 19, 2007 9:14 pm
by kishoreramachandran
the problem was with the dollar sign it should have been # for the parameter which was screwing up everything.