If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
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
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