ADSM-L

[ADSM-L] Help with tsm script

2011-06-07 10:41:03
Subject: [ADSM-L] Help with tsm script
From: "Lee, Gary D." <GLEE AT BSU DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 7 Jun 2011 10:23:31 -0400
I have a script which under tsm 5.5.4 server gives a report of

The storage pool name, count ov reclaimable volumes, and reclaimable space for 
the specified percentage.
You execute as follows:

Run reclaim-check 55

Under tsm 6.2.2, I get an arithmetic exception sqlstate 22003.
I don't see the problem.

Script follows:

 SELECT distinct stgpool_name as "Pool", - 
    count(volume_name) as "No. Volumes", - 
    cast(sum(cast((est_capacity_mb / 1024 *  - 
    (pct_utilized / 100)) - 
    as decimal(9,3))) as decimal(9,3)) - 
    as "GB Reclaimable" - 
 FROM   volumes - 
 WHERE  pct_reclaim>$1 - 
 GROUP BY stgpool_name 


Any ideas?
The error message gives no help as to what part of the expression gives the 
exception.
Thanks for any help you can give.


Gary Lee
Senior System Programmer
Ball State University
phone: 765-285-1310

 
<Prev in Thread] Current Thread [Next in Thread>