Hi Eric, give me you mail and I will send you ready for use operational reporting .hml for TSM 6.x You can use also IBM Tivoli monitoring for TSM and cognos to set/schedule some reports to be sent
Regards Chavdar On 11/20/2013 18:40, Colwell, William F. wrote:
Hi Eric, the timestampdiff function will do what you need. This works - select node_name, platform_name, date(lastacc_time) - from nodes - where cast(timestampdiff(16, current_timestamp - lastacc_time) as decimal(4,1))> 2 The first number in timestampdiff can be - 1 Fractions of a second 2 Seconds 4 Minutes 8 Hours 16 Days 32 Weeks 64 Months 128 Quarters 256 Years For full details on this and other functions, download the db2 9.7 sql reference volume 1. Bill Colwell Draper Lab -----Original Message----- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Loon, EJ van - SPLXM Sent: Wednesday, November 20, 2013 10:40 AM To: ADSM-L@VM.MARIST.EDU Subject: SQL query in v6 server Hi TSM-ers! We just migrated a second server to v6 and now I need to 'patch' TSM Operational Reporter. Among others, the following SQL statement no longer works: select node_name, platform_name, date(lastacc_time) from nodes where cast((current_timestamp-lastacc_time)days as decimal) >=2 and contact like 'Component Team Linux%%' It must have something to do with the cast part, because when I leave that out it works fine. I have a hard time finding the correct information about rewriting your SQL queries, so if somebody could help me out, I'll appreciate it! Kind regards, Eric van Loon AF/KLM Storage Engineering ******************************************************** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ********************************************************