× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 06-Sep-2011 11:40 , rob@xxxxxxxxx wrote:
What's a few GB among friends?
SELECT sum(ODOBSZ)
FROM routines/dskdtl
WHERE odobnm like 'ZAUD%'

SUM ( ODOBSZ )
250,664,271,872


Anyone referring to the above should keep in mind that use of ODOBSZ has been deprecated for many years and OS releases. The ODOBSZ column text has long suggested that for "Object size: 9,999,999,999=Use ODSIZU*ODBPUN"; the general recommendation is to use that expression irrespective of the value of ODOBSZ. Using ODOBSZ is especially undesirable for the object type *JRNRCV, like for the database *FILE, both being object types which can match or exceed 10GB; i.e. SUM(ODOBSZ) may provide undesirable results if objects of those types are included in the aggregate. Thus more appropriately:

select sum(odsizu*odbpun) from qtemp/qadspobj

Or perhaps:

with
szgb (ss) as ( select dec( dec( sum( odsizu*odbpun ), 13 )
/ (1024**3), 9, 3 )
from qtemp/qadspobj )
select char( repeat(' ', 12-length(strip(ss,b)) )
concat ss concat 'GB', 14) as "Total Size"
from szgb

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.