date portion

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
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

date portion

Post 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
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

More details please.
Can you also copy and paste the exact error messages, rather than typing it yourself.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post 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
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post 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.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post by kishoreramachandran »

ODBC_Enterprise_5.0: ERROR: Bad timestamp external representation ' $sym_date'
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post by kishoreramachandran »

in job parameter i do not see a timestamp option
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Change the timestamp to string and then try doing the comparison.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post by kishoreramachandran »

but that is a database variable how can i change that
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post 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.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post by kishoreramachandran »

thanks to narasimha and dsguru.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Good it got resolved :)
Care to share the solution please.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post by kishoreramachandran »

the problem was with the dollar sign it should have been # for the parameter which was screwing up everything.
Post Reply