5 pts.
 How to compute % ASP in AS400?
how to compute the % ASP in As400?

Software/Hardware used:
as400 machine
ASKED: September 13, 2011  11:33 AM
UPDATED: March 31, 2012  4:42 PM

Answer Wiki:
Command WRKSYSSTS with ASTLVL set to Advanced will show on upper right of screen System ASP . . . . . . . : 2233 G % system ASP used . . . : 64.1766
Last Wiki Answer Submitted:  September 13, 2011  2:02 pm  by  Rickmcd   1,480 pts.
All Answer Wiki Contributors:  Rickmcd   1,480 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You don’t compute it in any reasonable way. But you can retrieve it.

Call the Retrieve System Status (QWCRSSTS) API and request format SSTS0200. The % system ASP used is at offset 52.

Tom

 108,135 pts.

 

Total asp % used /100 * Total memory = free space
then
Total memory – Total free space = *****

By this way also can compute.


 

Total asp % used /100 * Total memory = free space

But that might give a very inaccurate number because the number of objects can affect how much space that you can use. Objects are allocated in blocks, and blocks usually are not full. Some space in a block is often not used.

So a larger number of smaller objects might use a lot more space than a single large object with the same amount of data.

Or a database file might have records that require padding or alignment of fields. Inefficient record formats may result in a large amount of wasted space, especially if they hold a large number of records.

Tom

 108,135 pts.