chad_small
ADSM.ORG Moderator
- Joined
- Dec 17, 2002
- Messages
- 2,262
- Reaction score
- 52
- Points
- 0
- Location
- Gilbert, AZ
- Website
- www.tsmadmin.com
So with the update to a DB2 structure the timestamp function has changed so that
select * from actlog where (current_time-date_time) seconds <= 60 seconds
Returns an error. So the new timestamp function is the following
select * from actlog where timestampdiff(8, char(current_timestamp-date_time)) <= 24
Where the following are the time functions for timestampdiff
1 - Microseconds
2 - Seconds
4 - Minutes
8 - Hours
16 - Days ... and so forth
The information on the changes to the SQL structure in TSM 6.x can be found here under Appendix B.
select * from actlog where (current_time-date_time) seconds <= 60 seconds
Returns an error. So the new timestamp function is the following
select * from actlog where timestampdiff(8, char(current_timestamp-date_time)) <= 24
Where the following are the time functions for timestampdiff
1 - Microseconds
2 - Seconds
4 - Minutes
8 - Hours
16 - Days ... and so forth
The information on the changes to the SQL structure in TSM 6.x can be found here under Appendix B.