LanSchroeder
ADSM.ORG Member
Hello everyone, I recently upgraded our main backup server from 5.5 to 6.3.4 because IBM said it was a good idea if you like support. Everything is running ok but a script I used quite freqently does not work with the new DB2 database. Is there any scripting gurus out there that can help me get my query to work in TSM v6? here is my 5.5 script...
select process,current_timestamp-start_time as "Elapsed Time",cast(bytes_processed*.000000001 as decimal(18,3)) as "GBytes Processed",(bytes_processed*.0000036)/(cast((current_timestamp-start_time)seconds as decimal(18,10))) as "GB / Hour",status from processes
It is a pretty basic query to show me the current active processes, with elapsed time, and data moved total and average...
example output...
PROCESS : Space Reclamation
Elapsed Time : 0 00:36:21.000000
GBytes Processed : 65.337
GB / Hour : 107.847
STATUS : Volume 000941L4 (storage pool LTOPOOL1), Moved Files: 91985, Moved Bytes: 65,822,875,174, Unreadable Files: 0, Unreadable Bytes: 0. Current Physical File (bytes): 51,245,819 Current input volume: 000941L4. Current output volume: 000083L4.
Any help is appreciated! Thanks!
select process,current_timestamp-start_time as "Elapsed Time",cast(bytes_processed*.000000001 as decimal(18,3)) as "GBytes Processed",(bytes_processed*.0000036)/(cast((current_timestamp-start_time)seconds as decimal(18,10))) as "GB / Hour",status from processes
It is a pretty basic query to show me the current active processes, with elapsed time, and data moved total and average...
example output...
PROCESS : Space Reclamation
Elapsed Time : 0 00:36:21.000000
GBytes Processed : 65.337
GB / Hour : 107.847
STATUS : Volume 000941L4 (storage pool LTOPOOL1), Moved Files: 91985, Moved Bytes: 65,822,875,174, Unreadable Files: 0, Unreadable Bytes: 0. Current Physical File (bytes): 51,245,819 Current input volume: 000941L4. Current output volume: 000083L4.
Any help is appreciated! Thanks!