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
-
scorpion
- Participant
- Posts: 144
- Joined: Thu May 12, 2005 4:19 am
Post
by scorpion »
Hi All,
I am using Sybase as my source database tables and datasets are my target files.
In one of my sybase table column like'DTTM' and the value for this column like:
'Dec 31 3999 12:00AM'
'Jan 23 2015 09:00 AM'
'Feb 28 2010 10:00 AM'
'Dec 31 3999 12:00AM'
But i need to extract records where DTTTM = 'Dec 31 3999 12:00AM'
How can i mention in user defined sql in sybase source stage?
is it exactly like:
where DTTTM = 'Dec 31 3999 12:00AM'
or do i need to conver to some thing?
could any one on help me?
Thanx&Regards
scorpion
-
ray.wurlod
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
-
Contact:
Post
by ray.wurlod »
How would you do it usng Sybase Open Client - that is if DataStage were not in the picture?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
scorpion
- Participant
- Posts: 144
- Joined: Thu May 12, 2005 4:19 am
Post
by scorpion »
Thanks for the reply Ray,
I tried to run the qry like below using my SQLAdvantage tool in my sybase database:
where DTTTM = 'Dec 31 3999 12:00AM'
but i am wondering will this work on datastage?
any suggestions--
Thanx&Regards
scorpion
-
chulett
- Charter Member
- Posts: 43085
- Joined: Tue Nov 12, 2002 4:34 pm
- Location: Denver, CO
Post
by chulett »
Did it work? There's nothing magic or different about DataStage, a query is still a query. If you can make it work there, it will work here.
-craig
"You can never have too many knives" -- Logan Nine Fingers